Skip to content

Delete an alert channel

DELETE
/api/v1/alerts/channels/{id}
curl --request DELETE \
--url https://example.com/api/v1/alerts/channels/1 \
--header 'Authorization: <Authorization>'

Deletes an alert channel by ID. Rules referencing it keep the dangling ID and the dispatcher skips it; deletion takes effect on the next alert reload.

id
required
integer

Channel ID

No content

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Not found

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Alerts disabled

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}