This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Delete rule
editDelete rule
editDeletes a single rule using the rule_id
or id
field.
Request URL
editDELETE <kibana host>:<port>/api/detection_engine/rules
URL query parameters
editThe URL query must include one of the following:
-
id
-DELETE /api/detection_engine/rules?id=<id>
-
rule_id
-DELETE /api/detection_engine/rules?rule_id=<rule_id>
Example request
editDeletes the rule with an id
value of 16947168-5405-453d-a8b5-aadad357af42
:
DELETE api/detection_engine/rules?id=16947168-5405-453d-a8b5-aadad357af42
Response code
edit-
200
- Indicates a successful call.