# Change Index retention period

**URL:** <https://discuss.elastic.co/t/change-index-retention-period/213468>\
**Category:** Elasticsearch\
**Created:** [December 31, 2019, 8:23pm UTC](https://discuss.elastic.co/t/change-index-retention-period/213468 "2019-12-31T20:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar6/32/55327_2.png) [@kumar6](https://discuss.elastic.co/u/kumar6)\
**Post date:** [December 31, 2019, 8:23pm UTC](https://discuss.elastic.co/t/change-index-retention-period/213468/1 "2019-12-31T20:23:01Z")

</div>

Hi,

Currently my indices are stored for 21 days and would like to change it to 7 days.  
I am not able to find out where to change it.  
Can you please let me know the steps to change it.  
I am using AWS managed elastic search version 6.8

---

<div class="post-metadata">

**Author:** ![kumar6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumar6/32/55327_2.png) [@kumar6](https://discuss.elastic.co/u/kumar6)\
**Post date:** [January 3, 2020, 4:03pm UTC](https://discuss.elastic.co/t/change-index-retention-period/213468/2 "2020-01-03T16:03:10Z")

</div>

We have a custom script for doing this.  
This can be closed.

---

<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 31, 2020, 4:03pm UTC](https://discuss.elastic.co/t/change-index-retention-period/213468/3 "2020-01-31T16:03:14Z")

</div>

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