# Delete domain

`DELETE /v1/domains/{id}`

Removes a domain from the workspace. Mail can no longer be sent from it.

Needs the scope: `domains:write`

## Path parameters

- `id` (string, required): The id of the item. Up to 64 characters.

## Returns

- `object` (string): What kind of thing was removed. One of: `list`, `email`, `broadcast`, `audience`, `template`, `template_version`, `template_starter`, `automation`, `metrics`, `domain`, `api_key`, `webhook`, `log`, `workspace`, `member`, `method`, `account`, `inbound_email`, `webhook_delivery`, `contact`, `plan`, `checkout`, `invoice`, `ask_answer`, `suppression`, `chat`, `automation_run`, `event`, `event_receipt`, `import`, `import_inventory`, `topic`, `contact_property`, `image`, `server`.
- `id` (string): The id of what was removed.
- `deleted` (true): Always `true`: it is gone for good.

## Example

cURL:

```bash
curl -X DELETE "$OPENSEND_API_URL/v1/domains/dom_02" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.domains.remove('dom_02')
```

CLI:

```bash
opensend domains remove dom_02
```

MCP:

```json
{
  "name": "domains_remove",
  "arguments": {
    "id": "dom_02"
  }
}
```

Answer:

```json
{
  "object": "domain",
  "id": "dom_02",
  "deleted": true
}
```
