Delete index

Introduced 1.0

If you no longer need an index, you can use the delete index API operation to delete it.

Example

  1. DELETE /sample-index

copy

Path and HTTP methods

  1. DELETE /<index-name>

URL parameters

All parameters are optional.

ParameterTypeDescription
allow_no_indicesBooleanWhether to ignore wildcards that don’t match any indices. Default is true.
expand_wildcardsStringExpands wildcard expressions to different indices. Combine multiple values with commas. Available values are all (match all indices), open (match open indices), closed (match closed indices), hidden (match hidden indices), and none (do not accept wildcard expressions), which must be used with open, closed, or both. Default is open.
ignore_unavailableBooleanIf true, OpenSearch does not include missing or closed indices in the response.
master_timeoutTimeHow long to wait for a connection to the master node. Default is 30s.
timeoutTimeHow long to wait for the response to return. Default is 30s.

Response

  1. {
  2. "acknowledged": true
  3. }