Deleting an Indexedit

To delete an index, use the following request:

DELETE /my_index

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 elasticsearch.yml:

action.destructive_requires_name: true

This restricts deletions to specific names, instead of allowing the special _all or wildcard options. You can also update this setting dynamically through the Cluster State API