WARNING: The 2.x versions of Elasticsearch have passed their EOL dates. If you are running a 2.x version, we strongly advise you to upgrade.
This documentation is no longer maintained and may be removed. For the latest information, see the current Elasticsearch documentation.
To delete an index, use the following request:
You can delete multiple indices with this:
DELETE /index_one,index_two DELETE /index_*
You can even delete all indices with this:
DELETE /_all DELETE /*
For some, the ability to delete all your data with a single command is a very
scary prospect. If you want to eliminate the possibility of an accidental
mass-deletion, you can set the following to true in your
This restricts deletions to specific names, instead of allowing the special
or wildcard options. You can also update this setting dynamically through the
Cluster State API