Delete async SQL search API

Delete async SQL search API

New API reference

For the most up-to-date API details, refer to SQL APIs.

Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.

  1. resp = client.sql.delete_async(
  2. id="FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=",
  3. )
  4. print(resp)
  1. response = client.sql.delete_async(
  2. id: 'FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM='
  3. )
  4. puts response
  1. const response = await client.sql.deleteAsync({
  2. id: "FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=",
  3. });
  4. console.log(response);
  1. 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:

Limitations

See SQL Limitations.

Path parameters

<search_id>

(Required, string) Identifier for the search.