Files
elasticsearch-js/docs/reference-async_search-delete.asciidoc
2024-12-05 14:46:51 -06:00

71 lines
4.1 KiB
Plaintext

[[reference-async_search-delete]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
=== client.asyncSearch.delete
Delete an async search. If the asynchronous search is still running, it is cancelled. Otherwise, the saved search results are deleted. If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.
{ref}/async-search.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(AsyncSearchDeleteRequest, options?): Promise<AsyncSearchDeleteResponse>
----
[discrete]
==== AsyncSearchDeleteRequest
[pass]
++++
<pre>
++++
interface AsyncSearchDeleteRequest extends <<RequestBase>> {
id: <<Id>>
}
[pass]
++++
</pre>
++++
[discrete]
==== AsyncSearchDeleteResponse
[pass]
++++
<pre>
++++
type AsyncSearchDeleteResponse = <<AcknowledgedResponseBase>>
[pass]
++++
</pre>
++++