curl http://localhost:9200/_cat/indices | awk '{print $3}' | egrep -v 'xx|xx|xx' | xargs -n 1 -I {} curl -XDELETE http://localhost:9200/{}