Some files in my Trash don't go away when I empty it - can I nuke 'em?
Posted 01/28/2007 at 4:46pm
| by Niko Coucouvanis

1. cd ~/.Trash (moves you into the Trash directory)
2. ls -l (shows you every file in the trash, with extra information)
3. sudo rm ant.jar (squashes the stickler file named "ant.jar" with the super-user power of sudo)
Indeed you can; first try holding the Option key while selecting Finder > Empty Trash. If the pesky file survives that napalm bomb, go nuclear by opening a Terminal window (/Applications/Utilities), typing in the commands above, and supplying your administrator password when prompted.
Enjoy this trick with caution, however - rm can literally delete your entire system if you know (or don't know) how to use it.