---
title: "Delete a domain"
description: "Remove a sending domain from your workspace. `DELETE /api/v1/email/domains/{id}`"
url: https://www.unitpost.com/docs/email/delete-email-domains-id
section: "Email API reference"
updated: 2026-11-17
---
# Delete a domain

`DELETE /api/v1/email/domains/{id}`

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](https://www.unitpost.com/docs/email/post-email-domains) (you'll need to verify it again). Requires the `domains:write` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 204 | Deleted. |
| 401 | Missing or invalid API key. |
| 404 | Domain not found. |

## Example request

```bash
curl -X DELETE 'https://www.unitpost.com/api/v1/email/domains/dom_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/email/delete-email-domains-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
