Delete a query rule
Added in 8.15.0
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.
Path parameters
-
ruleset_id
string Required The unique identifier of the query ruleset containing the rule to delete
-
rule_id
string Required The unique identifier of the query rule within the specified ruleset to delete
DELETE
/_query_rules/{ruleset_id}/_rule/{rule_id}
curl \
--request DELETE 'http://api.example.com/_query_rules/{ruleset_id}/_rule/{rule_id}' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"acknowledged": true
}