# Delete old rollover index

**URL:** <https://discuss.elastic.co/t/delete-old-rollover-index/263365>\
**Category:** Elasticsearch\
**Created:** [February 5, 2021, 9:56am UTC](https://discuss.elastic.co/t/delete-old-rollover-index/263365 "2021-02-05T09:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![graimato](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@graimato](https://discuss.elastic.co/u/graimato)\
**Post date:** [February 5, 2021, 9:56am UTC](https://discuss.elastic.co/t/delete-old-rollover-index/263365/1 "2021-02-05T09:56:03Z")

</div>

Dear all  
I implemented a ILM policy

```auto
{
  "metricbeat-7.10.2" : {
    "version" : 1,
    "modified_date" : "2021-02-04T15:52:42.289Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : {
            "rollover" : {
              "max_size" : "5mb",
              "max_age" : "10m"
            },
            "set_priority" : {
              "priority" : 100
            }
          }
        },
        "delete" : {
          "min_age" : "1m",
          "actions" : { }
        }
      }
    }
  }
}

```

The system works fine but it does not delete the old rollover index.  
I have

```auto
**Current phase** : delete
**Current action** : complete

```

but I continue to have all index es. myindex-000032, myindex-000033 ...  
Has someone the same problem?

thanks

---

<div class="post-metadata">

**Author:** ![graimato](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@graimato](https://discuss.elastic.co/u/graimato)\
**Post date:** [February 19, 2021, 10:54am UTC](https://discuss.elastic.co/t/delete-old-rollover-index/263365/2 "2021-02-19T10:54:55Z")

</div>

It is possible to solve it using dev-tools and adding

```auto
delete_searchable_snapshot: true

```

```auto
"delete": {
        "min_age": "1m",
        "actions": {
          "delete": {
            **"delete_searchable_snapshot": true**
          }
        }
      }

```

---

<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:** [March 19, 2021, 10:55am UTC](https://discuss.elastic.co/t/delete-old-rollover-index/263365/3 "2021-03-19T10:55:20Z")

</div>

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