---
title: "Delete a SQL database"
method: DELETE
path: "/storage/sqldbs/{id}"
tags: ["sql databases"]
---

# Delete a SQL database

`DELETE /storage/sqldbs/{id}`

Deletes a SQL database and all of the data it holds. Deletion is asynchronous and returns `202` with an empty body — the record is not removed synchronously. Poll `GET /storage/sqldbs/{id}`, which returns `404` once the database has been purged; there is no durable `deleted` state. A database still bound by a function is refused with `409` unless `force=true`.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `force` boolean

## Response `202`

Accepted — deletion runs asynchronously. The body is empty; poll `GET /storage/sqldbs/{id}` until it returns `404`.

## Other responses

- `401` — Unauthorized
- `404` — SQL database not found
- `409` — Conflict — the database is already being deleted, or is still bound by one or more functions
- `422` — Validation error — `id` is not a valid identifier
- `500` — Internal server error
- `503` — Cannot verify whether the database is still in use; retry, or pass `force=true`

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/1571b0380bd7/schema)
