# Delete domain

> Removes the domain, its DKIM key and its tracking subdomain. DNS records at your provider are not touched.

Source: https://mailvina.com/docs/api-reference/domains/delete-domain · Base URL: https://api.mailvina.com · Guide: https://mailvina.com/docs/domains

`DELETE /domains/:id`

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The domain ID. |

**Request**

```bash
curl -X DELETE 'https://api.mailvina.com/domains/:id' \
  -H 'Authorization: Bearer mv_xxxxxxxxx'
```

```js
const res = await fetch('https://api.mailvina.com/domains/:id', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.MAILVINA_API_KEY}`,
  },
});
const data = await res.json();
```

```python
import os, requests

res = requests.delete(
    "https://api.mailvina.com/domains/:id",
    headers={"Authorization": f"Bearer {os.environ['MAILVINA_API_KEY']}"},
)
print(res.json())
```

**Response**

```json
{
  "object": "domain",
  "id": "4dd369bc-aa82-4ff3-97de-514ae3000ee0",
  "deleted": true
}
```
