elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb
# Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
#
# @option arguments [String] :policy The name of the index lifecycle policy
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html
#
Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
Deletes the specified lifecycle policy definition . A currently used policy cannot be deleted .
def delete_lifecycle(arguments = {})
          raise ArgumentError, "Required argument 'policy' missing" unless arguments[:policy]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _policy = arguments.delete(:policy)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ilm/policy/#{Utils.__listify(_policy)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def delete_lifecycle ( arguments = { } ) raise ArgumentError , "Required argument 'policy' missing" unless arguments [ :policy ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _policy = arguments . delete ( :policy ) method = Elasticsearch :: API :: HTTP_DELETE path = "_ilm/policy/#{Utils.__listify(_policy)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Deletes the specified lifecycle policy definition.
Deletes the specified lifecycle policy definition .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None