# Is my delete phase correctly configured in ILM?

**URL:** <https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 23, 2021, 10:26am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209 "2021-08-23T10:26:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [August 23, 2021, 10:26am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/1 "2021-08-23T10:26:25Z")

</div>

Just in case, I wanted to confirm that my delete phase was correctly configured:

```auto
[root@server log]# curl -u user:password -X GET 'http://localhost:9200/_ilm/policy/ilp-for-logs'
{"ilp-for-logs":{"version":2,"modified_date":"2021-05-27T13:54:29.418Z","policy":{"phases":{"hot":{"min_age":"0ms","actions":{"set_priority":{"priority":100}}},"delete":{"min_age":"180d","actions":{}}}}}}[root@server log]#

```

Is this correct?

Thank you

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [August 23, 2021, 10:49am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/2 "2021-08-23T10:49:52Z")

</div>

It looks to be. U want to delete indices 180 days after entering cold phase?

---

<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:** [August 23, 2021, 10:11pm UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/3 "2021-08-23T22:11:50Z")

</div>

It's missing the `delete` action, see [Delete | Elasticsearch Guide [7.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.14/ilm-delete.html#ilm-delete-action-ex)

---

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [August 24, 2021, 7:53am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/4 "2021-08-24T07:53:32Z")

</div>

How exactly do I configure that?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/0/1081ef84ffb7fbde5ff578949281e8644065112d.png)

I thought that configuring that would mark them for delete and then Elastic would do its tasks to delete it

---

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [August 24, 2021, 7:54am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/5 "2021-08-24T07:54:03Z")

</div>

I want them to be deleted 180 days after its hot phase.

---

<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:** [August 24, 2021, 8:37am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/6 "2021-08-24T08:37:40Z")

</div>

What version are you running, there was a bug in previous 7.X that caused this when applying the policy via Kibana. If you upgrade it'll fix it, or use the API directly.

---

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [August 24, 2021, 8:49am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/7 "2021-08-24T08:49:48Z")

</div>

Seems I am using 7.10.1

---

<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:** [September 21, 2021, 8:50am UTC](https://discuss.elastic.co/t/is-my-delete-phase-correctly-configured-in-ilm/282209/8 "2021-09-21T08:50:23Z")

</div>

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