# Index Lifecycle Policy getting assigned even after ILM is turned off

**URL:** <https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 26, 2019, 8:38pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675 "2019-06-26T20:38:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [June 26, 2019, 8:38pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/1 "2019-06-26T20:38:02Z")

</div>

I created an ILP and was able to succesfully add it. I no longer need the ILP so what I did is:

1. removed the ILP from the index (POST index/\_ilm/remove)
2. turned off ILM (POST \_ilm/stop)
3. deleted the ILP completely

I have restarted the nodes since then, however, newly created indices are still getting assigned with the ILP. I have confirmed that the ILM is turned off and that the ILP no longer exist (GET \_ilm/policy).

Why is it still getting assigned? How do I remove the ILP completely? How do I stop the ILP from getting assigned to the new indices?

Thanks!

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [June 26, 2019, 8:58pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/2 "2019-06-26T20:58:24Z")

</div>

Hi VeeT,

It sounds like you have a template configured to automatically set the `index.lifecycle.name` setting on newly created indices. If you check your templates (`GET /_template`) you should be able to see for sure.

---

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [June 26, 2019, 9:02pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/3 "2019-06-26T21:02:09Z")

</div>

Hi dakrone. Ah, yes. I still have the template. So once I delete the template, then it shouldn't be applied anymore, correct?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [June 26, 2019, 9:26pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/4 "2019-06-26T21:26:46Z")

</div>

Yep, you can either delete it or change it not to include the `index.lifecycle.name` setting.

---

<div class="post-metadata">

**Author:** ![VeeT](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@VeeT](https://discuss.elastic.co/u/VeeT)\
**Post date:** [June 26, 2019, 9:38pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/5 "2019-06-26T21:38:51Z")

</div>

Thanks Lee

---

<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 24, 2019, 9:38pm UTC](https://discuss.elastic.co/t/index-lifecycle-policy-getting-assigned-even-after-ilm-is-turned-off/187675/6 "2019-07-24T21:38:58Z")

</div>

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