Delete a rule

DELETE /api/alerting/rule/{id}

Headers

  • The version of the API to use

    Value is 2023-10-31. Default value is 2023-10-31.

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • id string Required

    The identifier for the rule.

Responses

  • Indicates a successful call.

  • Indicates an invalid schema or parameters.

  • Indicates that this call is forbidden.

  • Indicates a rule with the given ID does not exist.

DELETE /api/alerting/rule/{id}
curl \
 -X DELETE https://localhost:5601/api/alerting/rule/{id} \
 -H "elastic-api-version: 2023-10-31" \
 -H "kbn-xsrf: true"