this post was submitted on 05 Apr 2025
7 points (100.0% liked)

macOS

1131 readers
1 users here now

The home for all things macOS on LW.

Rules:

founded 2 years ago
MODERATORS
7
Undeletable files (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by TomMasz@lemmy.world to c/macos@lemmy.world
 

I've got a couple of files (empty directories) in the Trash I can't delete. I own them, the mode is 777 and whether I use Empty Trash or use rm from the command line (with sudo or running as root) I get "Permission denied". I tried booting into recovery mode and setting csrutil to disabled but that did nothing. Any ideas? It's not the end of the world but every time I empty the trash I have to deal with the dialog box about not being able to delete them.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] rammjet@lemmy.world 1 points 1 month ago* (last edited 1 month ago) (1 children)

Try: sudo chflags nochg the_file

Then try to delete the_file

[โ€“] TomMasz@lemmy.world 1 points 1 month ago

The command should be nouchg and it didn't do anything.