How to delete trash from command line

April 11, 2020

Sometimes Ubuntu File Manager won't let you delete files from Trash folder for permissions reasons.

Then you can delete all files in trash from the terminal with the rm command:

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