Delete a query rule

Auth

Requires

Cluster
manage_search_query_rules
privileges
Path 2 parameters Responses 1 response

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.

About deleting a query rule

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

Responses

application/json
acknowledged boolean required

For a successful response, this value is always true. On failure, an exception is returned instead.