How to force remove locked items from trash (Mac OS X)
Recently I have had a folder in my trash that would not go away even after I emptied it. So I decided to do some simple command line to force delete the file.Â
Step 1:
Open up Terminal in Applications/Utilities
Type "sudo rm -rf " - with a space afterwards and don't press enter
Step 2:
Open up Trash on the Dock, then drag the folder or file to Terminal Window
Step 3:
Go to the Terminal Window, you should see "sudo rm -rf /path/to/.Trash/folder"
Press enter
Enter in admin password
Now you are done. The folder should have disappeared from your trash.











