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

macOS

1126 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 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 

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
[–] [email protected] 1 points 3 weeks ago (5 children)

Try booting into Recovery and use Terminal to rm -rf.

[–] [email protected] 1 points 3 weeks ago (4 children)

Did that, as mentioned in the question.

[–] [email protected] 1 points 3 weeks ago (1 children)

You said you disabled SIP in Recovery. You did not say you actually tried to delete from Recovery.

[–] [email protected] 1 points 3 weeks ago (1 children)

I did indeed try deleting them from Recovery with no success.

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Try: sudo chflags nochg the_file

Then try to delete the_file

[–] [email protected] 1 points 3 weeks ago

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

load more comments (2 replies)
load more comments (2 replies)