# Delete Replica after N days ILM

**URL:** <https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [July 14, 2020, 11:59pm UTC](https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208 "2020-07-14T23:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![contregm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/contregm/32/89737_2.png) [@contregm](https://discuss.elastic.co/u/contregm)\
**Post date:** [July 14, 2020, 11:59pm UTC](https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208/1 "2020-07-14T23:59:46Z")

</div>

Looking at the documentation it seems to say that if you only have hot nodes you can't set a lifecycle policy to remove replicas after a certain time period. You would have to migrate to a warm/cold node to be able to do this. Is this correct? If so why not have this be possible with ILM?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 15, 2020, 12:08am UTC](https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208/2 "2020-07-15T00:08:20Z")

</div>

There's currently no [action](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-actions.html) to do that, but it's an interesting idea. It would be worth creating a feature request on GitHub 🙂

---

<div class="post-metadata">

**Author:** ![contregm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/contregm/32/89737_2.png) [@contregm](https://discuss.elastic.co/u/contregm)\
**Post date:** [July 15, 2020, 12:28am UTC](https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208/3 "2020-07-15T00:28:11Z")

</div>

Thanks for confirming, I will submit a feat for this then.

---

<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:** [August 12, 2020, 12:28am UTC](https://discuss.elastic.co/t/delete-replica-after-n-days-ilm/241208/4 "2020-08-12T00:28:15Z")

</div>

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