# Bulk delete index via expression?

**URL:** https://discuss.elastic.co/t/bulk-delete-index-via-expression/55385
**Category:** Elasticsearch
**Created:** [July 13, 2016, 8:32am UTC](https://discuss.elastic.co/t/bulk-delete-index-via-expression/55385 "2016-07-13T08:32:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![famoss](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@famoss](https://discuss.elastic.co/u/famoss)
#### Post date: [July 13, 2016, 8:32am UTC](https://discuss.elastic.co/t/bulk-delete-index-via-expression/55385/1 "2016-07-13T08:32:49Z")

</div>

I create `index` every day,such as `indexname-yyyy-MM-dd`.Now i want to delete the `indexs` which created before the appointed day.

For example.I have 4 `indexs`(`name-2016-07-13`,`name-2016-07-14`,`name-2016-07-15`,`name-2016-07-16`),I want to delete the `indexs` which created before `2016-07-15`(`name-2016-07-13`,`name-2016-07-14`).

---

<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: [July 13, 2016, 8:48am UTC](https://discuss.elastic.co/t/bulk-delete-index-via-expression/55385/2 "2016-07-13T08:48:03Z")

</div>

I'd use curator tool for that.

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

---

<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:36pm UTC](https://discuss.elastic.co/t/bulk-delete-index-via-expression/55385/3 "2017-07-05T22:36:08Z")

</div>


