---
title: "Delete Database"
method: DELETE
path: "/v2/databases/{db_id}"
tags: ["Database (v2)"]
---

# Delete Database

`DELETE /v2/databases/{db_id}`

## Request

- Base URL: `https://api.bunny.net/database`
- URL: `https://api.bunny.net/database/v2/databases/{db_id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-database-backend-api/docs/v2/databases/:db_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a Database for a user.

## Path parameters

- `db_id` string, required: [DatabaseId] is a `db_<ulid>`

## Response `200`

- DeletedDatabaseV2Response
  - `db_id` string, required: [DatabaseId] is a `db_<ulid>`

## Other responses

- `401`: A default error response for most API errors.
- `403`: A default error response for most API errors.
- `404`: A default error response for most API errors.
- `500`: A default error response for most API errors.

## Changes

- **2026-11-12** `f3bb69bad6b6`: 1 info
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/bunny/apis/bunny-database-backend-api/changes/v2/databases/:db_id/delete.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-database-backend-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-database-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-database-backend-api/revisions/f3bb69bad6b6?raw)
