# Remote repository clean up

**URL:** <https://kopia.discourse.group/t/remote-repository-clean-up/1323>\
**Category:** Support\
**Created:** [August 5, 2022, 4:39pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323 "2022-08-05T16:39:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alles](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/alles/32/460_2.png) [@Alles](https://kopia.discourse.group/u/Alles)\
**Post date:** [August 5, 2022, 4:39pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323/1 "2022-08-05T16:39:03Z")

</div>

i was wondering if i connect to a s2 repository (minio in my case) if i delete a backup how long it takes to be actually cleaned by kopia on the remote, minio interface shows no changes after i deleted the backups in the total ammount of storage used

---

<div class="post-metadata">

**Author:** ![basldfalksjdf](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basldfalksjdf](https://kopia.discourse.group/u/basldfalksjdf)\
**Post date:** [August 5, 2022, 5:16pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323/2 "2022-08-05T17:16:01Z")

</div>

Deleting a snapshot in Kopia does not delete the associated blobs on the repo. Deleting a snapshot on Kopia tells Kopia that the associated blobs are now unreferenced, and Kopia deletes unreferenced blobs during daily full maintenance. I believe Kopia waits 24 hours before deleting any newly unreferenced blobs, but I am not sure about that.

---

<div class="post-metadata">

**Author:** ![Alles](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/alles/32/460_2.png) [@Alles](https://kopia.discourse.group/u/Alles)\
**Post date:** [August 5, 2022, 6:49pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323/3 "2022-08-05T18:49:48Z")

</div>

i wonder if there is a way to force kopia into deleting the unreferenced blobs, maybe with the maintaining command?

---

<div class="post-metadata">

**Author:** ![basldfalksjdf](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basldfalksjdf](https://kopia.discourse.group/u/basldfalksjdf)\
**Post date:** [August 5, 2022, 7:01pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323/4 "2022-08-05T19:01:54Z")

</div>

There is, but it is highly NOT recommended: running full maintenance with the `--safety=none` flag. Read

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

---

<div class="post-metadata">

**Author:** ![Alles](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/alles/32/460_2.png) [@Alles](https://kopia.discourse.group/u/Alles)\
**Post date:** [August 5, 2022, 7:03pm UTC](https://kopia.discourse.group/t/remote-repository-clean-up/1323/5 "2022-08-05T19:03:40Z")

</div>

thank you for the insight, i guess i will wait for the standard maintaining cycle
