Monday, May 5, 2025

command line – Can not delete previous and empty iPhone backup folder

I used to backup my iPhone to an exterior drive utilizing the directions right here however now that I’m backing as much as my inner arduous drive (the default location) I wish to delete the previous backup. I used to be one way or the other profitable at deleting the information throughout the directories, so it not takes up any area, however I can not seem to delete the listing itself. If the listing is within the Trash and I’m going to empty it, it tells me the sub-directories are in use:

error

If the trail is saved in $listing, whether or not I exploit rm -rf $listing or sudo rm -rf $listing, I get a Permission denied error for every sub-directory:

rm: /Volumes/VOLUME/iPhoneBackup/Backup/00008110-000G309221F0401E/61: Permission denied 

So far as permissions go, I’m the proprietor of the highest degree listing and every sub-directory…

I must also notice that I appeared for uchg (immutable) flags, and though there have been none I used sudo chflags -R nouchg $listing which had no impact. I additionally used sudo chmod -RN $listing to take away ACLs in case there have been any, additionally with no impact.

If I exploit ls -@AOelR $listing to get file flags, ACLs, and prolonged attributes I get this:

drwxr-xr-x  3 username  employees  - 96 Apr 22 13:41 Backup iPhoneBackup/Backup: whole 0 drwxr-xr-x  258 username  employees  - 8256 Apr 22 13:18 00008110-000G309221F0401E iPhoneBackup/Backup/00008110-000G309221F0401E: whole 0 drwxr-xr-x  26 username  employees  -  832 Jan 13  2024 00 drwxr-xr-x  28 username  employees  -  896 Jan 13  2024 01 ...[same results for each directory] iPhoneBackup/Backup/00008110-000G309221F0401E/00: whole 0 ...[same results for each directory] 

How do I do away with this listing?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles