How can I empty the trash from the Terminal?
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
Another solution would be to create AppleScript containing the folowing code
save it as or even better (as suggested by Chris) - execute:
Since trash is a Finder thing, this should be more compatible in the long run. |
|||||||
|
|
Trash is actually a hidden folder in the user's folder named .Trash If you delete it's contents, you empty the trash. You can use
Just be careful with it so you don't delete something else ;) |
|||||||
|
|
A review of various command line tools, for managing the Trash from command line: http://hasseg.org/blog/post/406/trash-files-from-the-os-x-command-line/ |
|||
|
|