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

# Delete a domain

`DELETE /email/domains/{id}`

## Request

- Base URL: `https://www.unitpost.com/api/v1`
- URL: `https://www.unitpost.com/api/v1/email/domains/{id}`
- Auth: HTTP bearer

Remove a sending domain from your workspace. Sends that reference an address on this domain will be rejected afterwards, so update your `from` addresses first. Re-add it any time with [Add a domain](#post-email-domains) (you'll need to verify it again). Requires the `domains:write` capability.

## Response `204`

Deleted.

## Other responses

- `401`: Missing or invalid API key.
- `404`: Domain not found.

---

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