# Delete Phase Not Actioned

**URL:** https://discuss.elastic.co/t/delete-phase-not-actioned/316726
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [October 17, 2022, 5:38am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726 "2022-10-17T05:38:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![waleedkh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waleedkh/32/112125_2.png) [@waleedkh](https://discuss.elastic.co/u/waleedkh)
#### Post date: [October 17, 2022, 5:38am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726/1 "2022-10-17T05:38:09Z")

</div>

Hi there,

I have an ILM configured with the following settings

```auto
PUT _ilm/policy/cwl-abc-policy
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_primary_shard_size": "50gb",
            "max_age": "1d"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        "min_age": "7d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}

{
  "indices" : {
    "cwl-abc-2022.08.15-0001" : {
      "index" : "cwl-abc-2022.08.15-0001",
      "managed" : true,
      "policy" : "cwl-abc-policy",
      "lifecycle_date_millis" : 1660603797413,
      "age" : "62.28d",
      "phase" : "hot",
      "phase_time_millis" : 1665984792182,
      "action" : "rollover",
      "action_time_millis" : 1660603797881,
      "step" : "check-rollover-ready",
      "step_time_millis" : 1665984792182,
      "is_auto_retryable_error" : true,
      "failed_step_retry_count" : 4456,
      "phase_execution" : {
        "policy" : "cwl-abc-policy",
        "phase_definition" : {
          "min_age" : "0ms",
          "actions" : {
            "set_priority" : {
              "priority" : 100
            },
            "rollover" : {
              "max_primary_shard_size" : "50gb",
              "max_age" : "1d"
            }
          }
        },
        "version" : 2,
        "modified_date_in_millis" : 1657711348302
      }
    }
  }
}

```

The indexes are not being deleted though, here is a sample of an index that still shows up. The age is 62 days.

Is there something I am missing in my setup perhaps?

Thanks

---

<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 17, 2022, 5:45am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726/2 "2022-10-17T05:45:46Z")

</div>

Can you do an explain on the index policy?

---

<div class="post-metadata">

### Author: ![waleedkh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waleedkh/32/112125_2.png) [@waleedkh](https://discuss.elastic.co/u/waleedkh)
#### Post date: [October 17, 2022, 6:18am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726/3 "2022-10-17T06:18:02Z")

</div>

Thanks, the first part above is the Index Lifecycle policy and then the second one is the explain on one of the indexes. Not sure if I am missing any other info you need?

Here is the explain of the related index template

```auto
{
  "template": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": "cwl-abc-policy",
          "rollover_alias": "cwl-abc"
        },
        "number_of_shards": "3",
        "number_of_replicas": "0"
      }
    },
    "aliases": {},
    "mappings": {}
  }
}

```

---

<div class="post-metadata">

### Author: ![waleedkh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waleedkh/32/112125_2.png) [@waleedkh](https://discuss.elastic.co/u/waleedkh)
#### Post date: [October 19, 2022, 4:46am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726/4 "2022-10-19T04:46:38Z")

</div>

Thanks, just checking if I have provided all the info you require?

---

<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 16, 2022, 4:47am UTC](https://discuss.elastic.co/t/delete-phase-not-actioned/316726/5 "2022-11-16T04:47:17Z")

</div>

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