# New retention policy deletes old backups in a smart way

**URL:** <https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195>\
**Category:** Announcements\
**Created:** [January 23, 2018, 6:47pm UTC](https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195 "2018-01-23T18:47:03Z")\
**Posts on this page:** 1\
**Showing post:** 37

<div class="post-metadata">

**Author:** ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)\
**Post date:** [February 12, 2018, 4:23pm UTC](https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195/37 "2018-02-12T16:23:05Z")

</div>

> [@Tekki](#):
>
> the most current backup will of course still always be kept

Thanks for the clarification!

For those that might not follow the difference, here’s a quick summary of how `--retention-policy` cleanup handles “end of life” of a file / version:

- any file still existing in the source will always have at least the most recent version in the backup even if that most recent backup is older than retention policy limits. (Unless `--allow-full-removal` is enabled, in which case backup versions older than retention rules allow WILL be removed from the backup even if the file still exists in the source.)
- any file deleted from the source will subsequently be deleted from the backup when it reaches the retention policy limit. This means that if you want to keep files “forever” (like CrashPlan allows) you should make sure your retention policy includes a very long time frame. For example, adding “99Y:99Y” means a deleted (from the source) file won’t be deleted until the version in the backup is over 99 years old.  
  
The “99Y” before the colon means keep “things around for 99 years”. The “99Y” after the colon means “keep 1 version for every 99 years”.

---

_[View the full topic](https://forum.duplicati.com/t/new-retention-policy-deletes-old-backups-in-a-smart-way/2195)._
