Skip to content

Delete database API Reference

DELETE
/tenants/{tenant}/databases/{name}
curl --request DELETE \
--url https://api.kupe.cloud/api/v1/tenants/acme/databases/orders-db \
--header 'Authorization: <Authorization>'

Delete a managed database and its bindings in every cluster. Refused with 409 (code deletion_protected) while deletionProtection is true: PATCH it to false first.

tenant
required
string

Tenant name

name
required
string

Database name

Database deletion initiated

Invalid name

object
code
string
error
string
field
string
message
string
severity
string

Missing or invalid authentication

object
code
string
error
string
field
string
message
string
severity
string

Admin access required

object
code
string
error
string
field
string
message
string
severity
string

Database not found

object
code
string
error
string
field
string
message
string
severity
string

Deletion protection is enabled (code deletion_protected), or the database kept changing while it was being deleted

object
code
string
error
string
field
string
message
string
severity
string

Rate limit exceeded

object
code
string
error
string
field
string
message
string
severity
string