# Delete old Index

**URL:** <https://discuss.elastic.co/t/delete-old-index/44617>\
**Category:** Elasticsearch\
**Created:** [March 16, 2016, 8:24pm UTC](https://discuss.elastic.co/t/delete-old-index/44617 "2016-03-16T20:24:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![evasu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evasu/32/83324_2.png) [@evasu](https://discuss.elastic.co/u/evasu)\
**Post date:** [March 16, 2016, 8:24pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/1 "2016-03-16T20:24:07Z")

</div>

Hi,  
I would like to know is there anyway I could write cron job to delete the index that is older than 3 months.  
my index on elasticsearch looks like this  
abc-2015.10  
abc-2015.11  
abc-2015.12  
abc-2016.01  
abc-2016.02  
abc.2016.03

my index created every monthly basis, i need to delete the index automatically older than 3 months.

currently i am doing manually deleting the index using

curl -XDELETE localhost:9200/abc-2015.10/

curl -XDELETE localhost:9200/abc-2015.11/

curl -XDELETE localhost:9200/abc-2015.12/

Any support will be appropriate.

---

<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:** [March 16, 2016, 8:25pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/2 "2016-03-16T20:25:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![evasu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evasu/32/83324_2.png) [@evasu](https://discuss.elastic.co/u/evasu)\
**Post date:** [March 16, 2016, 8:30pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/3 "2016-03-16T20:30:02Z")

</div>

Hi Mark,  
Thanks for reply.  
I am new to ELK  
is it new plugin tool need to install ?

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:** [March 16, 2016, 8:34pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/4 "2016-03-16T20:34:48Z")

</div>

It's not a plugin, your best option is to take a look at the docs for it 🙂

---

<div class="post-metadata">

**Author:** ![evasu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evasu/32/83324_2.png) [@evasu](https://discuss.elastic.co/u/evasu)\
**Post date:** [March 16, 2016, 8:36pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/5 "2016-03-16T20:36:05Z")

</div>

Thanks Mark.  
I am going through it now.

---

<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, 11:07pm UTC](https://discuss.elastic.co/t/delete-old-index/44617/6 "2017-07-05T23:07:44Z")

</div>


