mailtrain/mvis/tools/delete-els-indexes.sh

8 lines
207 B
Bash
Raw Normal View History

2018-12-25 19:13:32 +00:00
#!/bin/sh
SIGSETS=`curl -X GET "localhost:9200/_cat/indices?v" | grep 'signal_set_' | sed -e 's:.*\(signal_set_[^ ]*\).*:\1:g'`
for SIGSET in $SIGSETS ; do
curl -X DELETE "localhost:9200/$SIGSET"
done