Delete a query rule within a query ruleset. This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.
Required authorization
- Cluster privileges:
manage_search_query_rules
DELETE
/_query_rules/{ruleset_id}/_rule/{rule_id}
curl \
--request DELETE 'http://api.example.com/_query_rules/{ruleset_id}/_rule/{rule_id}'