Last active
June 22, 2017 02:13
-
-
Save gelias/ea301f5c9edc39c23dc6d9e5970c90fe to your computer and use it in GitHub Desktop.
Search and Delete Elastic Search indices
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
$('pre').textContent.split(" ").forEach(function(element){ if(element.startsWith('api')){console.log("curl -XDELETE 'URL_TO_API_SEARCH/"+element+" && echo")} }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment