How to delete Elasticsearch indices in Magento 2?

You can delete specific elastic search indices or all the available indices with the help of the Delete command.

You can run the given command to delete a specific index from the elastic search,

curl -X DELETE 'http://localhost:9200/<index_name>'