# Index lifecycle management, deleting by "name age"

**URL:** <https://discuss.elastic.co/t/index-lifecycle-management-deleting-by-name-age/168025>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [February 12, 2019, 12:14pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-deleting-by-name-age/168025 "2019-02-12T12:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattias\_Arbin](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@Mattias\_Arbin](https://discuss.elastic.co/u/Mattias_Arbin)\
**Post date:** [February 12, 2019, 12:14pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-deleting-by-name-age/168025/1 "2019-02-12T12:14:44Z")

</div>

I am using ELK for log analysis. I use this type of index names  
myindex-%{+xxxx.ww}  
i.e. weekly indices.  
I would like to use the index lifecycle management to delete indices that CONTAINS data older than 90 days. Note that I want to remove indices based on how old the data is, not necessary when the index was created.  
If I start a new log ingestion pipeline, I may suck in data from weeks and months back and multiple indices for different weeks will be created at once.  
The current (6.6) version only supports age based on index creation, but I would like to base the deletion on the age indicated by the index name. Something similar to what can be done in curator.  
[https://www.elastic.co/guide/en/elasticsearch/client/curator/5.6/filtertype\_age.html#\_literal\_name\_literal\_based\_ages](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.6/filtertype_age.html#_literal_name_literal_based_ages)

Are there any plans to support this?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 12, 2019, 1:11pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-deleting-by-name-age/168025/2 "2019-02-12T13:11:07Z")

</div>

Not that I am aware. This will continue to be one of the use cases where Curator is the correct choice.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 12, 2019, 1:11pm UTC](https://discuss.elastic.co/t/index-lifecycle-management-deleting-by-name-age/168025/3 "2019-03-12T13:11:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
