for item in $(curl http://localhost:9200/_cat/indices | \ grep 2020 | awk '{print $3}'); do \ curl -X DELETE http://localhost:9200/$item; done