Databases
Delete database
Delete a DBHost database through the API. DBHost verifies a deletion backup first, and the database can be recovered for seven days.
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.
The operation validates ownership, the database ID and name, and the
permanent protected-target list before anything is removed.
Poll
If part of it cannot be proven to belong to that clone, nothing more is removed
and the request answers
Path parameters
Request
Response
202 Accepted
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 inerror 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
503 CLONE_TARGET_DISCARD_INCOMPLETE; the database
stays in error.