Method: Elasticsearch::API::License::Actions#delete

Defined in:
lib/elasticsearch/api/actions/license/delete.rb

#delete(arguments = {}) ⇒ Object

Deletes licensing information for the cluster

Parameters:

  • arguments (Hash) (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :master_timeout (Time)

    Timeout for processing on master node

  • :timeout (Time)

    Timeout for acknowledgement of update from all nodes in cluster

  • :headers (Hash)

    Custom HTTP headers

See Also:


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/elasticsearch/api/actions/license/delete.rb', line 33

def delete(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || 'license.delete' }

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

  body   = nil

  method = Elasticsearch::API::HTTP_DELETE
  path   = '_license'
  params = Utils.process_params(arguments)

  Elasticsearch::API::Response.new(
    perform_request(method, path, params, body, headers, request_opts)
  )
end