[role="xpack"]
[[delete-async-eql-search-api]]
=== Delete async EQL search API
++++
Delete async EQL search
++++
.New API reference
[sidebar]
--
For the most up-to-date API details, refer to {api-es}/group/endpoint-eql[EQL APIs].
--
Deletes an <> or a
<>. The API also
deletes results for the search.
[source,console]
----
DELETE /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=
----
// TEST[skip: no access to search ID]
[[delete-async-eql-search-api-request]]
==== {api-request-title}
`DELETE /_eql/search/`
[[delete-async-eql-search-api-prereqs]]
==== {api-prereq-title}
* If the {es} {security-features} are enabled, only the following users can
use this API to delete a search:
** Users with the `cancel_task` <>
** The user who first submitted the search
* See <>.
[[delete-async-eql-search-api-limitations]]
===== Limitations
See <>.
[[delete-async-eql-search-api-path-params]]
==== {api-path-parms-title}
``::
(Required, string)
Identifier for the search to delete.
+
A search ID is provided in the <>'s response for
an <>. A search ID is also provided if the
request's <> parameter
is `true`.