Advertisement
josephxsxn

deleteallIndexes.sh

Jun 30th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. curl -s http://localhost:9200/_cat/indices | awk '{print $3} ' | grep -ve '.kibana' | while read line
  3. do
  4.     curl -s -X DELETE http://localhost:9200/$line
  5. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement