Created
November 13, 2021 22:13
-
-
Save xcsrz/bed2d2d5cf0523462a5bb4c2dead1aab to your computer and use it in GitHub Desktop.
Sometimes you just need to delete everything in an elasticsearch cluster and you don't have access to do the stop-rm-rf-start thing.
This file contains hidden or 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
for idx in $(curl -sS https://${DOMAIN}:${PORT}/_cat/indices | awk '{print $3}'); do curl -XDELETE "https://${DOMAIN}:${PORT}/${idx}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment