Last active
August 29, 2015 14:23
-
-
Save mkocikowski/37114a5232bd3fa2d145 to your computer and use it in GitHub Desktop.
Delete all closed indexes from Elasticsearch cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s 'localhost:9200/_cat/indices' | grep close | awk '{ printf "http://localhost:9200/%s\n", $2 }' | xargs -n 1 curl -i -XDELETE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment