elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb
def delete(arguments = {})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _id = arguments.delete(:id)

          method = Elasticsearch::API::HTTP_DELETE
          path   = "_async_search/#{Utils.__listify(_id)}"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
#
# @option arguments [String] :id The async search ID
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
#
Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
Deletes an async search by ID . If the search is still running the search request will be cancelled . Otherwise the saved search results are deleted .
def delete(arguments = {})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_async_search/#{Utils.__listify(_id)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def delete ( arguments = { } ) raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_DELETE path = "_async_search/#{Utils.__listify(_id)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Deletes an async search by ID.
Deletes an async search by ID .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None