---
title: "Delete a database"
method: DELETE
path: "/workspace/sql/databases/{database_id}"
tags: ["SQL"]
---

# Delete a database

`DELETE /workspace/sql/databases/{database_id}`

Schedule the deletion of a specific database in your account.

## Path parameters

- `database_id` integer, required

## Response `200`

Database deleted successfully.

- DeleteResponse
  - `state` string

## Other responses

- `202` — Database deletion request accepted and is being processed asynchronously.
- `400` — Validation Error
- `401` — Authentication Failed
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `429` — Throttled
- `500` — Internal Server Error

---

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