I'm curious about retiring old indices. As far as I know, by default Elasticsearch stores data forever. Question number one: is there any option to set in config files some period (four weeks, for example) after which data would get automatically deleted?
I also know indices can be deleted by using curl -xdelete, for example: curl -XDELETE localhost:9200/logstash-2016.11.*. This is something I could cron. Question two: is deleting data in such way safe? What I mean is whether using it would not break other indices / some other stuff?
Many thanks for your help