NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Use the delete index API to delete an existing index.
The above example deletes an index called
The delete index API can also be applied to more than one index, by either
using a comma separated list, or on all indices (be careful!) by using
* as index.
In order to disable allowing to delete indices via wildcards or
action.destructive_requires_name setting in the config to
This setting can also be changed via the cluster update settings api.