# Which kopia phase delete physical files?

**URL:** <https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294>\
**Category:** General Topics\
**Created:** [September 15, 2023, 6:45pm UTC](https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294 "2023-09-15T18:45:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigsub](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bigsub](https://kopia.discourse.group/u/bigsub)\
**Post date:** [September 15, 2023, 6:45pm UTC](https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294/1 "2023-09-15T18:45:02Z")

</div>

I have a repo on a compatible s3 storage (cubbit), more or less 30GB written on bucket.  
I delete all snapshot from kopiaui and then re-create all snapshots.  
Why now I have almost double space archivied on bucket and there are also files that kopia wrote before snapshot’s deletion?  
Which kopia operation delete them from bucket?

---

<div class="post-metadata">

**Author:** ![dimejo](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/dimejo/32/287_2.png) [@dimejo](https://kopia.discourse.group/u/dimejo)\
**Post date:** [September 16, 2023, 8:00pm UTC](https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294/2 "2023-09-16T20:00:45Z")

</div>

Files are not immediately removed for safety reasons. Please have a look at the documentation for more information:

> **[Maintenance](https://kopia.io/docs/advanced/maintenance/)**
>
> Fast and Secure Open-Source Backup Software for Windows, Mac, and Linux

---

<div class="post-metadata">

**Author:** ![bigsub](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bigsub](https://kopia.discourse.group/u/bigsub)\
**Post date:** [September 19, 2023, 9:02am UTC](https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294/3 "2023-09-19T09:02:42Z")

</div>

What about _ **–extend-object-locks** _ parameter in maintenance set? How does it work?

---

<div class="post-metadata">

**Author:** ![dimejo](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/dimejo/32/287_2.png) [@dimejo](https://kopia.discourse.group/u/dimejo)\
**Post date:** [September 19, 2023, 6:47pm UTC](https://kopia.discourse.group/t/which-kopia-phase-delete-physical-files/2294/4 "2023-09-19T18:47:26Z")

</div>

I have never used it but this section in the documentation might give you a clue:

> **[Ransomware Protection](https://kopia.io/docs/advanced/ransomware-protection/#even-more-protection)**
>
> Fast and Secure Open-Source Backup Software for Windows, Mac, and Linux
