# Need to delete Elastic search index after 15 days automatically

**URL:** https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266
**Category:** Elasticsearch
**Created:** [May 9, 2022, 2:54pm UTC](https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266 "2022-05-09T14:54:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sam1231](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Sam1231](https://discuss.elastic.co/u/Sam1231)
#### Post date: [May 9, 2022, 2:54pm UTC](https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266/1 "2022-05-09T14:54:22Z")

</div>

hi,  
i need to delete Elasticsearch indices after 15 days of creation date. i need to automate this process using python. is there any script for the same ?

im running AWS based Elasticsearch. version 6.4

---

<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: [May 10, 2022, 12:25am UTC](https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266/2 "2022-05-10T00:25:08Z")

</div>

Welcome to our community! 😃

> [@Sam1231](#):
>
> im running AWS based Elasticsearch. version 6.4

Curator is the only solution for a version that old.

---

<div class="post-metadata">

### Author: ![Sam1231](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Sam1231](https://discuss.elastic.co/u/Sam1231)
#### Post date: [May 10, 2022, 5:15pm UTC](https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266/3 "2022-05-10T17:15:15Z")

</div>

can you pls help me with curator setup to proceed ?

---

<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: [June 7, 2022, 5:15pm UTC](https://discuss.elastic.co/t/need-to-delete-elastic-search-index-after-15-days-automatically/304266/4 "2022-06-07T17:15:41Z")

</div>

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