# Automate deletion of indices

**URL:** https://discuss.elastic.co/t/automate-deletion-of-indices/69281
**Category:** Elasticsearch
**Created:** [December 16, 2016, 10:29am UTC](https://discuss.elastic.co/t/automate-deletion-of-indices/69281 "2016-12-16T10:29:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jinal.shah](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@jinal.shah](https://discuss.elastic.co/u/jinal.shah)
#### Post date: [December 16, 2016, 10:29am UTC](https://discuss.elastic.co/t/automate-deletion-of-indices/69281/1 "2016-12-16T10:29:01Z")

</div>

Hello

What's the best way to automate the deletion of the indices on elasticsearch 5?

For example, deleting indices older than 5 days.

I know in version 2, curator was the recommended option.

Cheers  
Jinal

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 16, 2016, 10:43am UTC](https://discuss.elastic.co/t/automate-deletion-of-indices/69281/2 "2016-12-16T10:43:24Z")

</div>

Same. Use curator

---

<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: [January 13, 2017, 10:43am UTC](https://discuss.elastic.co/t/automate-deletion-of-indices/69281/3 "2017-01-13T10:43:30Z")

</div>

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