# Snapshot expiration date with S3 bucket

**URL:** <https://discuss.elastic.co/t/snapshot-expiration-date-with-s3-bucket/251887>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [October 13, 2020, 10:23am UTC](https://discuss.elastic.co/t/snapshot-expiration-date-with-s3-bucket/251887 "2020-10-13T10:23:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahitkumarreddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahitkumarreddy/32/60479_2.png) [@sahitkumarreddy](https://discuss.elastic.co/u/sahitkumarreddy)\
**Post date:** [October 13, 2020, 10:23am UTC](https://discuss.elastic.co/t/snapshot-expiration-date-with-s3-bucket/251887/1 "2020-10-13T10:23:57Z")

</div>

We have a policy for creating snapshots to aws S3 bucket. In retention, we have to set expire\_after( delete after) 'y days'. Suppose if set expiration to 1 day, will it delete the snapshot just from elastic search or will it delete from s3 bucket also?

Similarly in case of max\_count, will it delete the snapshots from s3 bucket once the count reaches?

---

<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:** [November 10, 2020, 10:24am UTC](https://discuss.elastic.co/t/snapshot-expiration-date-with-s3-bucket/251887/2 "2020-11-10T10:24:16Z")

</div>

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