Delete async SQL search API
Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.
DELETE _sql/async/delete/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=
Request
DELETE _sql/async/delete/<search_id>
Prerequisites
-
If the Elasticsearch security features are enabled, only the following users can use this API to delete a search:
- Users with the
cancel_taskcluster privilege - The user who first submitted the search
- Users with the
Limitations
See SQL Limitations.
Path parameters
-
<search_id> - (Required, string) Identifier for the search.
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/delete-async-sql-search-api.html