Content
Delete unassigned shards (https://www.cyberithub.com/how-to-delete-elasticsearch-unassigned-shards/):
curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "http://localhost:9200/{}"
Delete unassigned shards (https://www.cyberithub.com/how-to-delete-elasticsearch-unassigned-shards/):
curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "http://localhost:9200/{}"