# ILM Delete Only Phase

**URL:** <https://discuss.elastic.co/t/ilm-delete-only-phase/236743>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 11, 2020, 4:04pm UTC](https://discuss.elastic.co/t/ilm-delete-only-phase/236743 "2020-06-11T16:04:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckough](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ckough/32/61892_2.png) [@ckough](https://discuss.elastic.co/u/ckough)\
**Post date:** [June 11, 2020, 4:04pm UTC](https://discuss.elastic.co/t/ilm-delete-only-phase/236743/1 "2020-06-11T16:04:29Z")

</div>

Hi there,

I'm running ELK 7.6. I create daily indexes with names like logstash-yyyy.mm.dd every 24hrs.

I need to delete indices greater than 30 days. Besides using curator, can I use the following settings in ILM instead?

 ![ILM_delete-only](https://us1.discourse-cdn.com/elastic/original/3X/e/8/e8195f416826b787f1610ba8dfa6672c6b7f7b16.jpeg)

Thanks,  
ck

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [June 11, 2020, 4:36pm UTC](https://discuss.elastic.co/t/ilm-delete-only-phase/236743/2 "2020-06-11T16:36:45Z")

</div>

I'm pretty sure you can, just specify the policy in the template. I think I did something like this when ILM was new.

One warning, if you are setting @timestamp from the log contents, say in winlogbeat, and old events are ingested, new indices will be created for each day in those old events. So if I get May 1 data today, a index-2020-05-01 index will be created and live for 30 days.

---

<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:** [July 9, 2020, 4:36pm UTC](https://discuss.elastic.co/t/ilm-delete-only-phase/236743/3 "2020-07-09T16:36:49Z")

</div>

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