---
title: "Delete a mailbox and all its mail"
method: DELETE
path: "/v1/mailboxes/{id}"
tags: ["mailboxes"]
---

# Delete a mailbox and all its mail

`DELETE /v1/mailboxes/{id}`

## Request

- Base URL: `https://botmail.pro`
- URL: `https://botmail.pro/v1/mailboxes/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `bm_session`

Scope: manage. Not for pending keys. Irreversible. The name is held for 7 days.

## Response `200`

Deleted.

- object
  - `deleted` true, required
  - `id` string, required
  - `freed_bytes` integer, required
  - `name_held_until` string, date-time, required

## Other responses

- `401`: Missing or invalid credentials (`unauthorized`, `invalid_token`).
- `403`: The credential can't do this (`forbidden`, `csrf`, `account_inactive`, …). Missing scopes are listed in `details.required_scope`; pending keys get a hint to wait for the claim.
- `404`: Not found or not accessible with this credential.

---

[API](https://skmtc.dev/botmail/apis/botmail-api.md) · [All operations](https://skmtc.dev/botmail/apis/botmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/botmail/apis/botmail-api/revisions/49f736362bf2?raw)
