Skip to content

Instantly share code, notes, and snippets.

@gelias
Last active June 22, 2017 02:13
Show Gist options
  • Save gelias/ea301f5c9edc39c23dc6d9e5970c90fe to your computer and use it in GitHub Desktop.
Save gelias/ea301f5c9edc39c23dc6d9e5970c90fe to your computer and use it in GitHub Desktop.
Search and Delete Elastic Search indices
$('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