{"record":{"id":"4c9cb8c518907f6b","repo":"appwrite/appwrite","slug":"no-delete-operation-for-type-type","errorCode":null,"errorMessage":"No delete operation for type: {$type}","messagePattern":"No delete operation for type: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/Appwrite/Platform/Workers/Deletes.php","lineNumber":364,"sourceCode":"                $this->deleteOldCSVExports($dbForPlatform, $deviceForFiles);\n                break;\n            case DELETE_TYPE_MAINTENANCE:\n                $this->deleteExpiredTargets($project, $getProjectDB);\n                $this->deleteExecutionLogs($project, $getProjectDB, $executionRetention, $executionsRetentionCount, $executionStore);\n                $this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime);\n                $this->deleteExpiredSessions($project, $getProjectDB);\n                $this->deleteExpiredTokens($project, $getProjectDB);\n                $this->deleteExpiredChallenges($project, $getProjectDB);\n                $this->deleteExpiredTransactions($project, $getProjectDB);\n                $this->deleteExpiredPresences($project, $getProjectDB, $publisherForUsage);\n                $this->deleteOldDeployments($publisherForDeletes, $project, $getProjectDB);\n                $this->updateProcessingMigrations($project, $getProjectDB);\n                break;\n            case DELETE_TYPE_REPORT:\n                $this->deleteReport($dbForPlatform, $project, $document);\n                break;\n            default:\n                throw new \\Exception('No delete operation for type: ' . \\strval($type));\n        }\n    }\n\n    private function deleteReport(Database $dbForPlatform, Document $project, Document $report): void\n    {\n        $projectInternalId = $project->getSequence();\n        $reportInternalId = $report->getSequence();\n\n        $this->deleteByGroup('insights', [\n            Query::equal('projectInternalId', [$projectInternalId]),\n            Query::equal('reportInternalId', [$reportInternalId]),\n        ], $dbForPlatform);\n    }\n\n    private function cleanDatabase(\n        Document $databaseDoc,\n        callable $executionActionPerDatabase,\n        bool $projectTables,","sourceCodeStart":346,"sourceCodeEnd":382,"githubUrl":"https://github.com/appwrite/appwrite/blob/ce3a85157f30ff289c7511f62ff076005fa106d1/src/Appwrite/Platform/Workers/Deletes.php#L346-L382","documentation":"Error \"No delete operation for type: {$type}\" thrown in appwrite/appwrite.","triggerScenarios":"Thrown at src/Appwrite/Platform/Workers/Deletes.php:228 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --resourceType=deployment; it is the only resource type this task currently supports.","To support another resource type, add its case to the match() in TimeTravel.php with the correct collection name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ce3a85157f30ff289c7511f62ff076005fa106d1","analyzedAt":"2026-08-18T21:34:56.994Z","contentChangedAt":"2026-08-18T21:34:56.994Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}