OSX El Capitan won't let me delete a file in my Trash. I've tried everything -- the secret keyboard shortcut, going to ~/.Trash in Terminal and doing an rm -rf, etc. Here's a Bash session that shows this:

~ $ cd ~/.Trash

~/.Trash $ ls

~/.Trash $ sudo rm -rf site
rm: site/static/main.styl: Operation not permitted
rm: site/static: Directory not empty
rm: site: Directory not empty

~/.Trash $ cd site/static

~/.Trash/site/static $ sudo rm -rf main.styl 
rm: main.styl: Operation not permitted

~/.Trash/site/static $ ls -lh main.styl
-r--r--r--  1 bh  staff   595B 26 Jul 14:16 main.styl

Does anyone have any idea why this might be happening, or how I might fix this?


Try a tiny app called 'Trash It!': http://www.macupdate.com/app/mac/8214/trash-it!

Also CleanMyMac 3.1.1 can be a solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.