---
title: "Deletes an alert rule."
method: DELETE
path: "/alerts/rules/{id}"
tags: ["Alerts"]
---

# Deletes an alert rule.

`DELETE /alerts/rules/{id}`

## Request

- Base URL: `https://api.reveldigital.com`
- URL: `https://api.reveldigital.com/alerts/rules/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.reveldigital.com/connect/authorize`
    - Token URL: `https://id.reveldigital.com/connect/token` scopes: `webapi`
  - API key in header `X-RevelDigital-ApiKey`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/docs/alerts/rules/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes the alert rule and its device/user associations. This operation
is idempotent from the caller's perspective: deleting a non-existent rule returns 404.
The rule must belong to the authenticated account.
Requires the `AlertRules_Delete` securable.

## Path parameters

- `id` string, required

## Response `204`

The alert rule was deleted.

## Other responses

- `401`: The API key is missing or invalid.
- `403`: The caller lacks the AlertRules_Delete securable.
- `404`: No alert rule with the given ID exists for this account.

---

[API](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api.md) - [All operations](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/revisions/39d5c8302822?raw)
