---
title: "Delete a database"
method: DELETE
path: "/projects/{id}/databases/{databaseName}"
tags: ["Databases"]
---

# Delete a database

`DELETE /projects/{id}/databases/{databaseName}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/databases/{databaseName}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Deletes a database and the instance backing it. When the instance is
removed synchronously the database row is deleted and the response is
`204`. If the instance cannot be deleted right away, the database row
is retained (status `deleting`) and its teardown is handed to the
background reconciler, which retries the deletion and removes the row
once the instance is gone; in that case the response is `202`. The database row is
never dropped while its instance still exists, so an instance is
never orphaned without a record to retry from.

## Path parameters

- `id` string, uuid, required
- `databaseName` string, required

## Response `202`

Deletion accepted and in progress. The backing instance could not be
removed synchronously, so the database is marked `deleting` and torn
down asynchronously by the reconciler.

- object
  - `status` string
  - `message` string

## Other responses

- `204`: Database deleted (backing instance removed synchronously)
- `404`: Project or database not found
- `409`: A restore is running on the database. Deleting it while a worker is replacing its data would race that worker, so wait for the restore to finish.
- `503`: Volcano could not check whether a restore is running, and will not delete a database that might be mid-restore. Retry.

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 5 breaking, 6 info
  - added the new path request parameter `databaseName`
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `404`
  - the response's body type changed from no type to `object` for status `409`
  - …7 more
- **2026-09-04** `c2ec82fb8ce8`: 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `503`
- **2026-08-27** `bb44e98aba2e`: 2 warning
  - deleted the `path` request parameter `databaseName`
  - deleted the `path` request parameter `id`

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/databases/:databaseName/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
