macOS Catalina cannot remove file from trash

1

I have already tried everything which comes to my mind I cannot remove file from trash OPTION key doesn't work same as sudo rm -rf - says Operation not permitted same using root user.

Jakub Swistak

Posted 2019-12-29T13:00:01.943

Reputation: 31

What are the full permissions on the file you are trying to delete? – DavidPostill – 2019-12-29T13:01:47.023

me - R&W, staff Ronly , everyone Ronly – Jakub Swistak – 2019-12-29T13:03:31.430

That's not full permissions. What is the output of ls -lo filename? – DavidPostill – 2019-12-29T13:08:43.283

ls: c: Operation not permitted – Jakub Swistak – 2019-12-29T13:11:28.457

Where is the file? What version of macOS? It could be in a SIP restricted location or if you are on Mojave+ you haven't given Terminal.app full disk access.

– lx07 – 2019-12-29T14:26:44.430

Ok i gave terminal full disk access. Permissions drwxr-xr-x@ and after rm -rf gives rm: c//SafariFamily: Operation not permitted rm: c/: Directory not empty – Jakub Swistak – 2019-12-29T14:31:06.660

Try disabling SIP and delete as described in this Apple Developer Forums thread Can't Remove SafariFamily

– lx07 – 2019-12-29T14:37:49.027

OK after disabling SIP in recovery mode csrutil disable I was able to remove file from trash. Thanks for help. – Jakub Swistak – 2019-12-29T15:11:38.650

Answers

2

After disabling SIP in recovery mode csrutil disable You will be able to remove file from trash. After remember to activate csrutil in recovery mode.

Jakub Swistak

Posted 2019-12-29T13:00:01.943

Reputation: 31