# DELETE /v1/tracking-domains/{id}

Remove a tracking domain

New mail stops using the host at once. Links in sent mail keep working while the CNAME record points at Sendora, so keep the record for as long as those links matter.

Takes an account key (`ak_…`) as a bearer token. TypeScript: `account.trackingDomains.delete(trackingDomainId)`. Python: `account.tracking_domains.delete(tracking_domain_id)`. PHP: `$account->trackingDomains->delete($trackingDomainId)`. Java: `account.trackingDomains().delete(trackingDomainId)`.

## Parameters

- `id` (path, required, string (uuid)): The tracking domain id.

## Responses

### 204 Removed. The body is empty.

## Errors

Every error answers `error`, the code, and `message`, a sentence for a person. A code that adds fields is shown in full below the table.

| Code | Status | Meaning |
| --- | --- | --- |
| `unauthorized` | 401 | The key is missing, malformed or revoked. |
| `wrong_token_kind` | 403 | The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes. |
| `not_for_connections` | 403 | A connected app called an operation that no tool of the MCP server calls. An API key can. |
| `read_only_connection` | 403 | A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting. |
| `test_server_only` | 403 | A connected app may create a secret, or do what cannot be undone, on a test server only. |
| `not_found` | 404 | No such tracking domain of this account. |

Headers sent with an error:

- `WWW-Authenticate` ("Bearer") on 401: Always Bearer: send the key as Authorization: Bearer <key>.
