WARNING: Version 1.7 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
The delete index API allows to delete an existing index.
$ curl -XDELETE 'http://localhost:9200/twitter/'
The above example deletes an index called
The delete index API can also be applied to more than one index, 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.