---
title: "Delete a custom domain"
method: DELETE
path: "/domains/{id}"
tags: ["domains"]
---

# Delete a custom domain

`DELETE /domains/{id}`

## Request

- Base URL: `https://dash.mailsocket.app/api/v1`
- URL: `https://dash.mailsocket.app/api/v1/domains/{id}`
- Auth: HTTP bearer

Releases the domain name. Refuses with `409 domain_has_inboxes` if
inboxes are still bound to it.

## Path parameters

- `id` string, required

## Response `204`

Domain deleted (no content).

## Other responses

- `401`: Missing or invalid API key.
- `403`: Account is not permitted to use the API.
- `404`: Resource not found (unknown or not owned).
- `409`: The domain still has inboxes bound to it (`domain_has_inboxes`).
- `429`: Rate limit exceeded.

---

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