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.
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.
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.
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.283ls: c: Operation not permitted
– Jakub Swistak – 2019-12-29T13:11:28.457Where 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.430Ok i gave terminal full disk access. Permissions
drwxr-xr-x@
and afterrm -rf
givesrm: c//SafariFamily: Operation not permitted rm: c/: Directory not empty
– Jakub Swistak – 2019-12-29T14:31:06.660Try disabling SIP and delete as described in this Apple Developer Forums thread Can't Remove SafariFamily
– lx07 – 2019-12-29T14:37:49.027OK 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