# Delete Snapshots API to delete "older than custom date" snapshots?

**URL:** <https://discuss.elastic.co/t/delete-snapshots-api-to-delete-older-than-custom-date-snapshots/141162>\
**Category:** Elasticsearch\
**Created:** [July 23, 2018, 12:01pm UTC](https://discuss.elastic.co/t/delete-snapshots-api-to-delete-older-than-custom-date-snapshots/141162 "2018-07-23T12:01:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![titan1978](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@titan1978](https://discuss.elastic.co/u/titan1978)\
**Post date:** [July 23, 2018, 12:01pm UTC](https://discuss.elastic.co/t/delete-snapshots-api-to-delete-older-than-custom-date-snapshots/141162/1 "2018-07-23T12:01:43Z")

</div>

Hi,  
I've been googling ways to delete older snapshots in our repository. I have found posts on deleting snaphsots via curator but I'm more interested in a one-time aPI call that can function similar to delete by query for deleting snapshots older than a specific date . Can someone suggest how I can go about by this? I don't really want to write a script that cats snapshots, sorts and then deletes (one of the work arounds I thought of)

---

<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:** [July 23, 2018, 1:20pm UTC](https://discuss.elastic.co/t/delete-snapshots-api-to-delete-older-than-custom-date-snapshots/141162/2 "2018-07-23T13:20:13Z")

</div>

There are no easy paths to doing that with snapshots using the API. Have you considered the [`curator_cli` singleton](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.5/singleton-cli.html) approach for this?

---

<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:** [August 20, 2018, 1:20pm UTC](https://discuss.elastic.co/t/delete-snapshots-api-to-delete-older-than-custom-date-snapshots/141162/3 "2018-08-20T13:20:19Z")

</div>

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