> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drin.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an inbox

> DELETE /v1/inboxes/{id} — remove a receive address. Refused with 409 if it has messages.

Remove a receive address. Allowed only while the inbox is empty — once it has received mail, its threads are kept.

**`DELETE /v1/inboxes/{id}`**

## Path parameters

<ParamField body="id" type="string" required>
  The inbox id to delete, for example `inb_01HZ9C7R2K`.
</ParamField>

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://api.drin.run/v1/inboxes/inb_01HZ9C7R2K \
    -H "Authorization: Bearer $DRIN_API_KEY"
  ```

  ```typescript Node.js theme={null}
  import { DrinClient } from "@drin00/sdk";

  const drin = new DrinClient({ apiKey: process.env.DRIN_API_KEY });

  await drin.inboxes.delete("inb_01HZ9C7R2K");
  ```
</CodeGroup>

## Response

`204 No Content` on success — there is no response body.

<Warning>
  **409 on existing messages.** An inbox that has received mail cannot be deleted — the request is refused with `409 Conflict` so the conversation history is preserved. Disable [receiving](/api-reference/domains/receiving) on the domain to stop new mail instead.
</Warning>

```json theme={null}
{
  "error": {
    "type": "conflict",
    "message": "Inbox has messages and cannot be deleted."
  }
}
```
