Delete Database
Permanently delete a database and release its DNS record with DELETE /v2/databases/. There is no confirmation, so take a snapshot first.
DELETE
Delete Database
string
required
The API key for your account. You can find this in your account settings.
databases:write scope.
Permanently removes the database container and releases its public DNS record (square-cloud-db-<id>.squareweb.app). This is destructive and immediate: there is no confirmation step, and the connection URL stops resolving as soon as the DNS record is released.
If you need the data afterward, take a Create Snapshot before deleting. The request is rejected while a snapshot restore is in progress on the database. Rate limited to 1 deletion every 3 seconds per user.
Parameters
string
required
The ID of the database.
Response
string
Indicates whether the call was successful:
success if it was, error if not.Common errors
Related
- CLI:
squarecloud db delete - SDKs:
api.databases.delete()(JavaScript),client.databases.delete()(Python),c.Databases.Delete()(Go)

