# How to delete old indices in ES 2.3

**URL:** <https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860>\
**Category:** Elasticsearch\
**Created:** [August 24, 2016, 7:56pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860 "2016-08-24T19:56:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanshan](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@nanshan](https://discuss.elastic.co/u/nanshan)\
**Post date:** [August 24, 2016, 7:56pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860/1 "2016-08-24T19:56:40Z")

</div>

I only want to keep the indices in ES for few days.

Is there any way to delete old indices?

---

<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, 2016, 8:57pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860/2 "2016-08-24T20:57:53Z")

</div>

[Elasticsearch Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html).

---

<div class="post-metadata">

**Author:** ![nanshan](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@nanshan](https://discuss.elastic.co/u/nanshan)\
**Post date:** [August 24, 2016, 9:05pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860/3 "2016-08-24T21:05:13Z")

</div>

How to trigger it to run `curator`? I can install and configure it in chef. but we do not run Chef daily ?

---

<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, 2016, 9:09pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860/4 "2016-08-24T21:09:52Z")

</div>

You need to put it it cron, or some other scheduler.

---

<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 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/how-to-delete-old-indices-in-es-2-3/58860/5 "2017-07-05T22:25:24Z")

</div>


