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


Click here to return to the 'A relatively safe method of deleting trashed locked files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A relatively safe method of deleting trashed locked files
Authored by: jaaronp on Aug 24, '06 10:20:56AM

Given the potential badness of doing things like running rm -rf as root an alternative may be helpful.

Specifically, I would try first unlocking all of the files in the Trash using

$ sudo chflags -R nouchg,nouunlnk,nosunlnk,noschg ~/.Trash

Now the Finder locks should all be clear and you can empty your trash as normal.


See man chflags for details.



[ Reply to This | # ]