# Deleting snapshots

**URL:** <https://discuss.elastic.co/t/deleting-snapshots/148843>\
**Category:** Elasticsearch\
**Created:** [September 17, 2018, 2:15pm UTC](https://discuss.elastic.co/t/deleting-snapshots/148843 "2018-09-17T14:15:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![riteshun](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@riteshun](https://discuss.elastic.co/u/riteshun)\
**Post date:** [September 17, 2018, 2:15pm UTC](https://discuss.elastic.co/t/deleting-snapshots/148843/1 "2018-09-17T14:15:39Z")

</div>

Hi I was reading thru the following article.. Please help me understand will it delete the files in S3 bucket as well? If not then what is the approach to purge old snapshots in S3 bucket.

[https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete\_snapshots.html#delete\_snapshots](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_snapshots.html#delete_snapshots)

Thanks..

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [September 17, 2018, 5:34pm UTC](https://discuss.elastic.co/t/deleting-snapshots/148843/2 "2018-09-17T17:34:03Z")

</div>

You should _never_ directly interact with the files in a snapshot repository. You should only ever interact with a snapshot repository via the Elasticsearch API calls (which is what Curator does).

When all references to a segment are deleted (in a Snapshot Delete call), then the associated segments will also be deleted from your S3 bucket.

---

<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:** [October 15, 2018, 5:34pm UTC](https://discuss.elastic.co/t/deleting-snapshots/148843/3 "2018-10-15T17:34:07Z")

</div>

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