# Periodic delete of old indices using curator

**URL:** https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715
**Category:** Elasticsearch
**Created:** [May 15, 2017, 7:28am UTC](https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715 "2017-05-15T07:28:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)
#### Post date: [May 15, 2017, 7:28am UTC](https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715/1 "2017-05-15T07:28:20Z")

</div>

Hi,

I have tried out curator 5.0.1 and can make it clean out older indices than 3 days when I manually run curator.

I am not sure about how curator is expected to work. Documentation is not clear.  
Does it expect me t run curator command every time I want to delete old indices?  
I thought I could configure an run it once and then it would take care of old indices from that point without any manual interaction.  
But it does not seem to work that way. Indices are created and they become older and older.  
Do I need to create a cron job for curator?

Br Mathias

---

<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: [May 15, 2017, 9:24am UTC](https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715/2 "2017-05-15T09:24:11Z")

</div>

> [@mathias](#):
>
> Do I need to create a cron job for curator?

Yes that is correct.

---

<div class="post-metadata">

### Author: ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)
#### Post date: [May 16, 2017, 11:37am UTC](https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715/3 "2017-05-16T11:37:16Z")

</div>

Thanks, scheduling with cron works.  
It took me to next problem but I take that as a separate issue.

---

<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: [June 13, 2017, 11:41am UTC](https://discuss.elastic.co/t/periodic-delete-of-old-indices-using-curator/85715/4 "2017-06-13T11:41:47Z")

</div>

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