Delete Database
Delete a database. It is marked deleting and ngris then drops the database, its users and all of its data. This can't be undone. Requires Databases delete.
The delete is refused while any application uses the database: through a connection (the database POST /v1/applications/{uuid}/database creates is one too), or, for an older per-app database not moved onto a connection, as its app's own (legacy: true: it can't be disconnected; the database becomes deletable once that app is deleted). Disconnect each app with DELETE /v1/applications/{uuid}/database-connections/{connection_uuid}, then retry. A paused database can be deleted; deleting one that is already deleting answers 202 again.
Response (202 Accepted)
{"database": {…}} with status: "deleting" (database object). The database no longer counts against your plan's limit.
Errors
database not found.database_in_use: applications use the database. connected_apps lists them ({application_uuid, application_name}).databases_unavailable.