Based on your requirements, you can configure a purge duration for Elasticsearch.
/opt/mapr/elasticsearch/elasticsearch-<Version>/usr/share/elasticsearch/bin/es_cluster_mgmt.sh --purgeAge <newValue>This command will automatically update the delete_indices.yml file. This
change updates only the unit_count value to newValue,
without changing the unit value.