---
title: "Delete a database"
method: DELETE
path: "/v2/databases/{databaseId}"
tags: ["DB Lifecycle"]
---

# Delete a database

`DELETE /v2/databases/{databaseId}`

Removes the database and releases the public DNS record. Rejected while a snapshot restore is in progress.

Rate limited to 1 deletion every 3 seconds per user.

## Path parameters

- `databaseId` string, required

## Response `200`

Database deleted.

- object
  - `status` 'success', required

## Other responses

- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `403` — A snapshot restore is currently in progress for this database.
- `404` — The database does not exist, is not owned by the caller, or the delete operation failed.
- `429` — The endpoint enforces its own rate limit and the caller hit the cooldown.
- `500` — An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
