# Delete an async SQL search **DELETE /_sql/async/delete/{id}** Delete an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: * Users with the `cancel_task` cluster privilege. * The user who first submitted the search. ## Required authorization * Cluster privileges: `cancel_task` ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Api key auth ## Parameters #### Path parameters - **id** (string) The identifier for the search. ## 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)