appwrite/appwrite · error · Exception
No delete operation for type: {$type}
Error message
No delete operation for type: {$type} What it means
Error "No delete operation for type: {$type}" thrown in appwrite/appwrite.
Source
Thrown at src/Appwrite/Platform/Workers/Deletes.php:364
$this->deleteOldCSVExports($dbForPlatform, $deviceForFiles);
break;
case DELETE_TYPE_MAINTENANCE:
$this->deleteExpiredTargets($project, $getProjectDB);
$this->deleteExecutionLogs($project, $getProjectDB, $executionRetention, $executionsRetentionCount, $executionStore);
$this->deleteUsageStats($project, $getProjectDB, $getLogsDB, $hourlyUsageRetentionDatetime);
$this->deleteExpiredSessions($project, $getProjectDB);
$this->deleteExpiredTokens($project, $getProjectDB);
$this->deleteExpiredChallenges($project, $getProjectDB);
$this->deleteExpiredTransactions($project, $getProjectDB);
$this->deleteExpiredPresences($project, $getProjectDB, $publisherForUsage);
$this->deleteOldDeployments($publisherForDeletes, $project, $getProjectDB);
$this->updateProcessingMigrations($project, $getProjectDB);
break;
case DELETE_TYPE_REPORT:
$this->deleteReport($dbForPlatform, $project, $document);
break;
default:
throw new \Exception('No delete operation for type: ' . \strval($type));
}
}
private function deleteReport(Database $dbForPlatform, Document $project, Document $report): void
{
$projectInternalId = $project->getSequence();
$reportInternalId = $report->getSequence();
$this->deleteByGroup('insights', [
Query::equal('projectInternalId', [$projectInternalId]),
Query::equal('reportInternalId', [$reportInternalId]),
], $dbForPlatform);
}
private function cleanDatabase(
Document $databaseDoc,
callable $executionActionPerDatabase,
bool $projectTables,View on GitHub (pinned to ce3a85157f)
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.
When it happens
Trigger: Thrown at src/Appwrite/Platform/Workers/Deletes.php:228 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of appwrite/appwrite@ce3a85157f (2026-08-18).
Data as JSON: /api/errors/4c9cb8c518907f6b.
Report an issue: GitHub.