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

# Delete a SQL database

`DELETE /storage/sqldbs/{id}`

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/storage/sqldbs/{id}`
- Auth: HTTP bearer

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`

## Changes

- **2026-10-21** `67df31283a8a`: 5 breaking, 5 info
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `401`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `404`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `409`
  - the `errors/items/code` response's property type changed from `integer` to `string`, and format from `int32` to no format for status `422`
  - …6 more
- **2026-10-15** `a72569d69430`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/team-telnyx/apis/telnyx-api/changes/storage/sqldbs/:id/delete.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api.md) - [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api/revisions/0f17b8167873?raw)
