Remove an escalation policy
Delete an escalation policy permanently. An escalation policy can't be deleted while anything uses it, such as a monitor, heartbeat, integration or another escalation policy.
The ID of the escalation policy to remove.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
The escalation policy is deleted. The response has no body.
The API token is missing or invalid.
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
The token is read-only, your role doesn't include Create new and manage existing escalation policies and severities on Escalations and severity levels, or the token can't be used for this API.
{
"errors": "This API token is read-only and cannot be used for write operations."
}
The escalation policy doesn't exist, or the token can't access it.
The policy is still used by a monitor, heartbeat, integration, or another escalation policy's fallback or branch target.
{
"errors": "Cannot remove this escalation policy because it is in use."
}
We couldn't check whether a Telemetry alert still escalates to this policy. Try again in a moment.
{
"errors": "Couldn't remove this escalation policy. Please try again in a moment."
}
Example cURL