# Elasticsearch curator 4.x

**URL:** <https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346>\
**Category:** Elasticsearch\
**Created:** [October 6, 2016, 7:58am UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346 "2016-10-06T07:58:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssi](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@ssi](https://discuss.elastic.co/u/ssi)\
**Post date:** [October 6, 2016, 7:58am UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346/1 "2016-10-06T07:58:16Z")

</div>

Hi

how do I get it to run a cron job that will delete indices X days old. I had it running with an older curator vesions, but the command line reference i can find on the net don't work. Did you do away with this in the newer version, as i cant find anything on the documentation pages.

---

<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 6, 2016, 8:08am UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346/2 "2016-10-06T08:08:34Z")

</div>

Have you seen [https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html)?

Are you after help with cron or the curator syntax?

---

<div class="post-metadata">

**Author:** ![ssi](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@ssi](https://discuss.elastic.co/u/ssi)\
**Post date:** [October 6, 2016, 8:24am UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346/3 "2016-10-06T08:24:44Z")

</div>

hi, yes ive senn the doc, it is because to don't have the command line way of doing anymore but have to use files?

I'm both after commandline syntax and the cron if there are any changes to that also

i used to run something like this and i would work

curator --host delete indices --time-unit days --older-than 45

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [October 6, 2016, 11:04pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346/4 "2016-10-06T23:04:22Z")

</div>

If you like the 3.5.1 way of doing things, there's no reason you need to upgrade. You can continue to use Curator 3.5.1 as long as you want.

There are benefits of using 4.x, though.

> [@ssi](#):
>
> I'm both after commandline syntax and the cron if there are any changes to that also

There are [examples](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/examples.html) like this one to [delete\_indices](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/ex_delete_indices.html) in the documentation. I just promoted the examples page to be visible at the root level menu.

---

<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:14pm UTC](https://discuss.elastic.co/t/elasticsearch-curator-4-x/62346/5 "2017-07-05T22:14:09Z")

</div>


