# Delete Indexes based on Month Name

**URL:** <https://discuss.elastic.co/t/delete-indexes-based-on-month-name/213199>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [December 27, 2019, 2:42pm UTC](https://discuss.elastic.co/t/delete-indexes-based-on-month-name/213199 "2019-12-27T14:42:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Narang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_narang/32/48919_2.png) [@Gaurav\_Narang](https://discuss.elastic.co/u/Gaurav_Narang)\
**Post date:** [December 27, 2019, 2:42pm UTC](https://discuss.elastic.co/t/delete-indexes-based-on-month-name/213199/1 "2019-12-27T14:42:55Z")

</div>

I have month and year based indexes in the following format inventory\_log\_november\_2019  
Index name format -\>prefix + month + year

How to use curator to delete indices which are older than 'X' months?  
If we are using source as name in the curator yml file then what will be the timestring property?

---

<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 24, 2020, 2:43pm UTC](https://discuss.elastic.co/t/delete-indexes-based-on-month-name/213199/2 "2020-01-24T14:43:04Z")

</div>

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