# Delete a query rule **DELETE /_query_rules/{ruleset_id}/_rule/{rule_id}** 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 a rule from the Query Rules UI](https://www.elastic.co/docs/solutions/search/query-rules-ui#delete-a-rule) ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth ## Parameters #### Path parameters - **ruleset_id** (string) The unique identifier of the query ruleset containing the rule to delete - **rule_id** (string) The unique identifier of the query rule within the specified ruleset to delete ## Responses ### 200: #### Body Parameters: application/json (object) - **acknowledged** (boolean) For a successful response, this value is always true. On failure, an exception is returned instead. [Powered by Bump.sh](https://bump.sh)