# "Deleting unwanted files" How and which files based on date?

**URL:** <https://forum.duplicati.com/t/deleting-unwanted-files-how-and-which-files-based-on-date/13395>\
**Category:** Uncategorized\
**Created:** [November 14, 2021, 8:52am UTC](https://forum.duplicati.com/t/deleting-unwanted-files-how-and-which-files-based-on-date/13395 "2021-11-14T08:52:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)\
**Post date:** [November 14, 2021, 2:55pm UTC](https://forum.duplicati.com/t/deleting-unwanted-files-how-and-which-files-based-on-date/13395/2 "2021-11-14T14:55:22Z")

</div>

I’ll try to give you a short and simple answer.

When you run a backup, Duplicati processes your files in chunks (100KB by default). Any chunk (block) of data it hasn’t seen before (hasn’t already stored on the back end) will be packaged into dblock volumes for upload. (Duplicati never stores the exact same chunk more than once on the back end - this is how the deduplication engine works.)

Duplicati records all blocks referenced by each backup version. In this way it knows which chunks in which dblock volumes on the back end are referenced by backup versions. After some backup versions are pruned by your retention settings, it can figure out which chunks are no longer referenced by any backup version and are therefore candidates for deletion.

Because chunks are combined into larger dblock volumes (50MB by default), Duplicati waits before reclaiming space by unreferenced chunks until some threshold is reached. It may either just delete entire dblock volumes (if all chunks inside the volume are no longer referenced), or it may download 2 or more dblock volumes, repackage them (without the unreferenced chunks) into fewer volumes, upload the new volumes, and finally delete the old volumes. The goal of this compaction process is to reduce the data usage and number of files on the back end.

> [@patg84](#):
>
> You must keep files on their service for a minimum of 90 days. I don’t want Duplicati trimming the fat at 85 days if you catch my drift.

Technically there’s nothing wrong with deleting early. It’s just that Wasabi will charge you _as if_ the object were still present for the full 90 days.

---

_[View the full topic](https://forum.duplicati.com/t/deleting-unwanted-files-how-and-which-files-based-on-date/13395)._
