Delete all Elasticsearch indices from 2020

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