Delete Database
Last updated Changelog
http
DELETE /cranebase/services/{serviceId}/databases/{databaseName}
{databaseName} is the full name. Takes every user’s access away, then drops the database and all its data. This can’t be undone. 404 when there’s no such database.
Response
json
{ "message": "Database deleted." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 403 | scope_denied |
This API key does not have CraneBase write access for this service. |
| 403 | service_inactive |
This CraneBase service is not active. |
| 404 | not_found |
Database not found. Service not found. |
| 500 | server_error |
Failed to delete database. |