Skip to main content
DELETE
Delete database
Queues guarded database deletion. The request must confirm the exact internal database name. DBHost creates and verifies a deletion backup, removes routing, and creates a tombstone with a seven-day self-service recovery window. The tombstone does not consume active database quota but reserves the name. After seven days, DBHost permanently deletes the database and its deletion backup automatically.
Deletion requires an API key with access to the database, the exact database name and a verified deletion backup. Protected or unsupported targets receive FEATURE_NOT_AVAILABLE; a name alone is never enough.

Path parameters

Request

The operation validates ownership, the database ID and name, and the permanent protected-target list before anything is removed.

Response

202 Accepted
Poll GET /api/v1/operations/{id}. After success, use the deleted-databases endpoint to inspect the recovery deadline or queue recovery while quota permits.

A clone that failed

A database in error because its clone failed never held data you could use, so there is nothing to back up or recover. Deleting it removes what the clone left at once, and its name and plan slot are free again:
200 OK
If part of it cannot be proven to belong to that clone, nothing more is removed and the request answers 503 CLONE_TARGET_DISCARD_INCOMPLETE; the database stays in error.

Errors