This is a simple script to delete Logstash indices from Elasticsearch.
As example if you want to delete all indices that are older than 180 days:
# Just for debugging
logstash-delete-index -H 192.169.100.10:9200 -d 180
# Delete the indices (-r = run)
logstash-delete-index -H 192.169.100.10:9200 -d 180 -r