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.

DELETE https://incidents.betterstack.com/api/v5/escalation-policies/{id}
id string required

The ID of the escalation policy to remove.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

204

The escalation policy is deleted. The response has no body.

401

The API token is missing or invalid.

401 Unauthorized
{
  "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"
}
403

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.

403 Forbidden
{
  "errors": "This API token is read-only and cannot be used for write operations."
}
404

The escalation policy doesn't exist, or the token can't access it.

422

The policy is still used by a monitor, heartbeat, integration, or another escalation policy's fallback or branch target.

422 Unprocessable Content
{
  "errors": "Cannot remove this escalation policy because it is in use."
}
503

We couldn't check whether a Telemetry alert still escalates to this policy. Try again in a moment.

503 Service Unavailable
{
  "errors": "Couldn't remove this escalation policy. Please try again in a moment."
}

Example cURL

Delete an escalation policy
curl --request DELETE \
  --url https://incidents.betterstack.com/api/v5/escalation-policies/456 \
  --header "Authorization: Bearer $TOKEN"