# DELETE /darkcrawl/v1/channels/{channel_id}

> Delete a channel and its deliveries.

DELETE `/darkcrawl/v1/channels/{channel_id}`

**Authentication:** your key as a [bearer token](https://darkcrawl.dev/docs/api-reference/authentication/).

## Path parameters

| Field        | Type     | Required | Default |
| ------------ | -------- | -------- | ------- |
| `channel_id` | `string` | Required |         |

## Request

**curl**

```bash
curl -X DELETE https://api.darkcrawl.dev/darkcrawl/v1/channels/CHANNEL_ID \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"
```

**Python**

```python
import os
import requests

resp = requests.delete(
    "https://api.darkcrawl.dev/darkcrawl/v1/channels/CHANNEL_ID",
    headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
    timeout=330,
)
print(resp.json())
```

**Node**

```javascript
const resp = await fetch("https://api.darkcrawl.dev/darkcrawl/v1/channels/CHANNEL_ID", {
  method: "DELETE",
  headers: {
    Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
  },
  signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());
```

## Response

Status `200`.

```json
{
  "deleted": true
}
```

## Errors

| Code        | Status |
| ----------- | ------ |
| `NOT_FOUND` | 404    |
| `CONFLICT`  | 409    |

What each code means, and what to do about it: [Errors](https://darkcrawl.dev/docs/api-reference/errors/).

## Notes

- A channel that a monitor or a watch still names is not deleted: the call is `409 CONFLICT`, and `details` lists the ids that use it. Take it off them first.
- An unknown id, and another company's channel, answer `404 NOT_FOUND`.
