# DietPi-Sync doesn't delete files on destination folder

**URL:** https://dietpi.com/forum/t/dietpi-sync-doesnt-delete-files-on-destination-folder/4583
**Category:** Troubleshooting
**Created:** [30 October 2020 20:28 UTC](https://dietpi.com/forum/t/dietpi-sync-doesnt-delete-files-on-destination-folder/4583 "2020-10-30T20:28:54Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![mafioso12dk](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@mafioso12dk](https://dietpi.com/forum/u/mafioso12dk)
#### Post date: [30 October 2020 20:28 UTC](https://dietpi.com/forum/t/dietpi-sync-doesnt-delete-files-on-destination-folder/4583/1 "2020-10-30T20:28:54Z")

</div>

Hi. I have 2 HDDs connected to Raspberry Pi 4b through USB ports. Disk 1 is mounted in /mnt/share, Disk 2 is mounted in /mnt/backup. Everything works just fine, disks mount automatically even after reboot and after cold start, but i have problem with dietpi-sync function. I want to have exact copy of share disk on backup disk so I set Delete Mode and Daily Sync to ON. I created for tests New Folder in /mnt/backup location and tried to run rsync and the tool didn’t delete this folder. I was trying multiple times and everytime effect was the same.

Then I ran this command in terminal:  
sudo rsync -hvrPt --delete /mnt/share/ /mnt/backup

and everything synced just fine  
Anyone knows what’s the matter

Thanks in advance

---

_[View the full topic](https://dietpi.com/forum/t/dietpi-sync-doesnt-delete-files-on-destination-folder/4583)._
