# Retention policy for Transform's index

**URL:** <https://discuss.elastic.co/t/retention-policy-for-transforms-index/306767>\
**Category:** Elasticsearch\
**Created:** [June 9, 2022, 7:54am UTC](https://discuss.elastic.co/t/retention-policy-for-transforms-index/306767 "2022-06-09T07:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bianca6](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@bianca6](https://discuss.elastic.co/u/bianca6)\
**Post date:** [June 9, 2022, 7:54am UTC](https://discuss.elastic.co/t/retention-policy-for-transforms-index/306767/1 "2022-06-09T07:54:12Z")

</div>

Hi,

If I set a retention policy on a Transform, like 7 days, the whole index will be deleted after 7 days.

How can I set up something like "delete the data older than 7 days, and keep the rest alive"?

Thanks!

---

<div class="post-metadata">

**Author:** ![bianca6](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@bianca6](https://discuss.elastic.co/u/bianca6)\
**Post date:** [June 16, 2022, 9:11am UTC](https://discuss.elastic.co/t/retention-policy-for-transforms-index/306767/2 "2022-06-16T09:11:19Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae7573b831398eb614844c254bfba9348a8657f9.png)

At the end of point 4 right here:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/ecommerce-transforms.html#ecommerce-transforms](https://www.elastic.co/guide/en/elasticsearch/reference/current/ecommerce-transforms.html#ecommerce-transforms)

---

<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 14, 2022, 9:11am UTC](https://discuss.elastic.co/t/retention-policy-for-transforms-index/306767/3 "2022-07-14T09:11:47Z")

</div>

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