Deletes a query rule within a query ruleset Added in 8.15.0

DELETE /_query_rules/{ruleset_id}/_rule/{rule_id}

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

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

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

DELETE /_query_rules/{ruleset_id}/_rule/{rule_id}
curl \
 -X DELETE http://api.example.com/_query_rules/{ruleset_id}/_rule/{rule_id}