# When is the lifepolicy of DELETE phase is executed?

**URL:** <https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [October 26, 2021, 10:40am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680 "2021-10-26T10:40:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MinwooKim](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MinwooKim](https://discuss.elastic.co/u/MinwooKim)\
**Post date:** [October 26, 2021, 10:40am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/1 "2021-10-26T10:40:46Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80c0d2d24519ca2ca81d398f828597de5c47cac4.png)

As shown above, the hot phase with 30 day rollover was already in active state,  
thus I have indexes with

indexname-2021.05.10-1  
indexname-2021.05.16-000002  
indexname-2021.06.15-000003  
indexname-2021.07.10-000004  
indexname-2021.08.09-000005  
indexname-2021.09.08-000006  
indexname-2021.10.08-000007

Today, I added a delete phase with 60 days and saved, however, none of the indexes were deleted.

Is there anyway to add a policy to automatically delete indexes that have names before August?

---

<div class="post-metadata">

**Author:** ![d.silwon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/d.silwon/32/65853_2.png) [@d.silwon](https://discuss.elastic.co/u/d.silwon)\
**Post date:** [October 26, 2021, 12:10pm UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/2 "2021-10-26T12:10:14Z")

</div>

Hi @MinwooKim,

Do you have created template for this indexes? If no please do it.  
Do you assigned existing indexes to ILM policy? if no please do it.  
It should solved you problems.

Regards,  
Dan

---

<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:** [October 26, 2021, 9:45pm UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/3 "2021-10-26T21:45:10Z")

</div>

What version are you on?  
There was a bug in earlier 7.X releases that didn't actually add a delete action to the policy, so make sure you are on 7.15.

---

<div class="post-metadata">

**Author:** ![MinwooKim](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MinwooKim](https://discuss.elastic.co/u/MinwooKim)\
**Post date:** [October 27, 2021, 1:01am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/4 "2021-10-27T01:01:58Z")

</div>

unfortunately, yes both were already done,, as my question, but if it did work, does the indexes before 60days get deleted immidiately?

---

<div class="post-metadata">

**Author:** ![MinwooKim](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@MinwooKim](https://discuss.elastic.co/u/MinwooKim)\
**Post date:** [October 27, 2021, 1:03am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/5 "2021-10-27T01:03:02Z")

</div>

I have a question, I am using the basic license based on 7.4.2 does 7.15. upgrades cost money?

---

<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:** [October 27, 2021, 1:31am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/6 "2021-10-27T01:31:14Z")

</div>

7.4 is [EOL](https://www.elastic.co/support/eol) so you should definitely upgrade. The default distro of 7.15 is still free 🙂

---

<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:** [November 24, 2021, 1:32am UTC](https://discuss.elastic.co/t/when-is-the-lifepolicy-of-delete-phase-is-executed/287680/7 "2021-11-24T01:32:05Z")

</div>

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