Sha256: 78800e4bdf055d3a9ed478252fb17b6f7289f17f6f529dfb628ea9b3d06fcbda
Contents?: true
Size: 1.56 KB
Versions: 60
Compression:
Stored size: 1.56 KB
Contents
module Elasticsearch module API module Indices module Actions # Delete an index, list of indices, or all indices in the cluster. # # @example Delete an index # # client.indices.delete index: 'foo' # # @example Delete a list of indices # # client.indices.delete index: ['foo', 'bar'] # client.indices.delete index: 'foo,bar' # # # @example Delete a list of indices matching wildcard expression # # client.indices.delete index: 'foo*' # # @example Delete all indices # # client.indices.delete index: '_all' # # @option arguments [List] :index A comma-separated list of indices to delete; # use `_all` to delete all indices # @option arguments [Time] :timeout Explicit operation timeout # # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index/ # def delete(arguments={}) valid_params = [ :timeout ] method = HTTP_DELETE path = Utils.__pathify Utils.__listify(arguments[:index]) params = Utils.__validate_and_extract_params arguments, valid_params body = nil if Array(arguments[:ignore]).include?(404) Utils.__rescue_from_not_found { perform_request(method, path, params, body).body } else perform_request(method, path, params, body).body end end end end end end
Version data entries
60 entries across 60 versions & 6 rubygems