Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Yet another method of trashing undeletable files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yet another method of trashing undeletable files
Authored by: jacobolus on Feb 14, '06 07:36:06PM

Just to be clear about the unix command. This always works for me:

sudo rm -rf ~/.Trash/*

This code will, with administrator priviledges, nuke everything in your trash. So if you can't delete something from the trash another way, this will wipe it.

The usual warnings apply. Sometimes a file can't be deleted because an application is currently using it (sometimes that application is part of OS X, and your computer will go wonky if the file goes away).



[ Reply to This | # ]
Yet another method of trashing undeletable files
Authored by: UberFu on Feb 14, '06 08:56:02PM

sudo rm -rf ~/.Trash/*
--

With the above command - you can pretty much leave off the ~ and everything after it and simply drag any of the file(s) or folder(s) you want to delete onto the Terminal window and press ENTER_

Also [at least in TIGER 10.4.x] They added a "Secure Delete" function in the FINDER MENU underneath the normal EMPTY TRASH Menu Item that will also handle any files that won't delete under normal circumstances_



[ Reply to This | # ]
Yet another method of trashing undeletable files
Authored by: jt777 on Feb 16, '06 12:56:50PM
Secure Delete is simply an srm -rf ~/.Trash/* NSTask. I don't think it handles permissions differently than a regular Empty Trash or rm would do. from man srm:
srm  removes each specified file by overwriting, renaming, and truncat-
       ing it before unlinking. This prevents other people from undeleting  or
       recovering any information about the file from the command line.


[ Reply to This | # ]