# Deleting specific indices with Curator

**URL:** https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149
**Category:** Elasticsearch
**Created:** [September 27, 2018, 8:38am UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149 "2018-09-27T08:38:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jasper\_Nygaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_nygaard/32/4238_2.png) [@Jasper\_Nygaard](https://discuss.elastic.co/u/Jasper_Nygaard)
#### Post date: [September 27, 2018, 8:38am UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149/1 "2018-09-27T08:38:35Z")

</div>

Setting up Curator to reindex into weekly indices (monthly gets too big), and when done I need to delete the daily indices - With the delete action, is it possible to delete specified indices? Haven't been able to find much documentation besides the age filter type.

---

<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: [September 27, 2018, 12:22pm UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149/2 "2018-09-27T12:22:54Z")

</div>

No. You would need to use filters to select. If you're using a full weekly time period, why not look into the [`period`](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/filtertype_period.html) filter?

Even better still, why not switch to using Rollover indices rather than daily? Then you bypass the need for reindexing altogether, as you allow the shards/indices to grow to your target size and then rollover. If you can use this approach, it's much less overhead on the cluster.

---

<div class="post-metadata">

### Author: ![Jasper\_Nygaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_nygaard/32/4238_2.png) [@Jasper\_Nygaard](https://discuss.elastic.co/u/Jasper_Nygaard)
#### Post date: [September 28, 2018, 7:51am UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149/3 "2018-09-28T07:51:19Z")

</div>

Hi Aaron, the period filter option is exactly what I needed. However, didn't know about the rollover API and it looks like it may solve the same problem. Do you know if it is possible to start a new index every week?

Thanks for the input!

---

<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: [September 28, 2018, 8:48pm UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149/4 "2018-09-28T20:48:22Z")

</div>

> [@Jasper\_Nygaard](#):
>
> Do you know if it is possible to start a new index every week?

You could just have a Curator job with only a rollover action with a `max_age` of something small, like `1s`, and then call that at midnight on Sunday or Monday (depending on when you start the week. Magic! New index every week!

---

<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: [October 26, 2018, 8:59pm UTC](https://discuss.elastic.co/t/deleting-specific-indices-with-curator/150149/5 "2018-10-26T20:59:48Z")

</div>

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