Delete query rulesetedit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

Removes a query ruleset and its associated data. This is a destructive action that is not recoverable.


DELETE _query_rules/<ruleset_id>


Requires the manage_search_query_rules privilege.

Path parametersedit

(Required, string)

Response codesedit

The ruleset_id was not provided.
404 (Missing resources)
No query ruleset matching ruleset_id could be found.


The following example deletes the query ruleset named my-ruleset:

DELETE _query_rules/my-ruleset/