Linux: Command to empty recycle bin

What is the shell command to empty the garbage bin under Linux?


Except for the ~/.local/share/Trash trash files for other file systems may be stored in <mount-point>/.Trash-$(id -u) directories. If your're running ubuntu there is a helper package to clean all locations

sudo aptitude install trash-cli

To clean the trash in all locations just run:

empty-trash

It should work with any linux desktop environment compliant with FreeDesktop.org Trash Specification. On newer versions, the command may be:

trash-empty

rm -rf ~/.local/share/Trash/files

If not under .local/share, it may be under ~/.Trash


In case you would like to empty the trash of the currently logged in user:

rm -rf ~/.local/share/Trash/files/*