# 도메인 삭제

> 작업 공간에서 도메인을 제거합니다.

`DELETE /domains/:id`

Sends from this domain are rejected right away. Emails already accepted still deliver.

## 경로 매개 변수

- `id` (string, required): The domain id, for example `47be30ca-24b7-48fb-b35d-ff287b89e66d`.

## Example

cURL

```
curl -X DELETE 'https://sendtern.com/domains/47be30ca-24b7-48fb-b35d-ff287b89e66d' \
  -H 'Authorization: Bearer st_your_api_key'
```

Node.js

```
const res = await fetch("https://sendtern.com/domains/47be30ca-24b7-48fb-b35d-ff287b89e66d", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.SENDTERN_API_KEY}`,
  },
});

console.log(res.status); // 204
```

Python

```
import os
import requests

res = requests.delete(
    "https://sendtern.com/domains/47be30ca-24b7-48fb-b35d-ff287b89e66d",
    headers={"Authorization": f"Bearer {os.environ['SENDTERN_API_KEY']}"},
)

print(res.status_code)  # 204
```

## Response

```json
HTTP/1.1 204 No Content
```
