Delete query ruleset
editDelete query ruleset
editRemoves a query ruleset and its associated data. This is a destructive action that is not recoverable.
Request
editDELETE _query_rules/<ruleset_id>
Prerequisites
editRequires the manage_search_query_rules
privilege.
Path parameters
edit-
<ruleset_id>
- (Required, string)
Response codes
edit-
400
-
The
ruleset_id
was not provided. -
404
(Missing resources) -
No query ruleset matching
ruleset_id
could be found.
Examples
editThe following example deletes the query ruleset named my-ruleset
:
resp = client.query_rules.delete_ruleset( ruleset_id="my-ruleset", ) print(resp)
const response = await client.transport.request({ method: "DELETE", path: "/_query_rules/my-ruleset", }); console.log(response);
DELETE _query_rules/my-ruleset/