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

# Delete a sending domain

`DELETE /domains/{id}`

## Request

- Base URL: `https://api.eusend.dev`
- URL: `https://api.eusend.dev/domains/{id}`
- Auth: HTTP bearer

Removes the domain and rotates its DKIM key out of use. Keys scoped to it stop authenticating. Live emails still scheduled from it are canceled and their quota refunded.

## Path parameters

- `id` string, uuid, required

## Response `200`

Deleted.

- DeleteDomainResponse
  - `message` string, required
  - `canceled_scheduled_emails` integer, required: Scheduled emails from this domain that were canceled with it.

## Other responses

- `401`: Missing, malformed, or revoked API key (`UNAUTHORIZED`).
- `403`: The key exists but may not reach this resource — a `sending_access` key outside the send paths, a test-mode key writing live state, or an account on hold (`FORBIDDEN`, `ACCOUNT_RESTRICTED`).
- `404`: No such resource on this organization (`NOT_FOUND`).
- `429`: Rate limit exceeded (`RATE_LIMITED`).
- `500`: Unexpected server error (`INTERNAL_ERROR`). Carries `request_id`.

---

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