Alert channels
DELETE /darkcrawl/v1/channels/{channel_id}
Copy page
Delete a channel and its deliveries.
DELETE /
Authentication: your key as a bearer token.
Path parameters
| Field | Type | Required | Default |
|---|---|---|---|
channel_id | string | Required |
Request
curl -X DELETE https://api.darkcrawl.dev/darkcrawl/v1/channels/CHANNEL_ID \
-H "Authorization: Bearer $DARKCRAWL_API_KEY"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())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.
{
"deleted": true
}Errors
| Code | Status |
|---|---|
NOT_FOUND | 404 |
CONFLICT | 409 |
What each code means, and what to do about it: Errors.
Notes
- A channel that a monitor or a watch still names is not deleted: the call is
409 CONFLICT, anddetailslists the ids that use it. Take it off them first. - An unknown id, and another company's channel, answer
404 NOT_FOUND.