How Can I Empty the Trash Without First Opening It?
The Only Way I've Seen How to Empty the Trash Is to Use the Empty Trash Button That Is Displayed After Choosing Go | Trash in Nautilus. If There Are Too Many...
The only way I've seen how to empty the trash is to use the Empty Trash button that is displayed after choosing Go | Trash in Nautilus. If there are too many items in the trash it can take a long time for the list of files to load, especially when Nautilus defaults to generating thumbnails.
Is there a way to empty the trash that doesn't require opening it first?
5 Answers
If you enable a trash icon on the desktop, You can right click on it and select 'Empty Deleted Items'. Also, within the file manager, you don't have to navigate into the Deleted Items folder; you can right click on the Deleted Items place on the left hand side and select 'Empty Deleted Items'.
If you have the "Trash Applet" on the lower right of the screen by default, you can right-click and get a menu with "Empty Trash". In the shell you can just
$ empty-trash
In Unity, a trash icon is provided at the bottom of the launcher. Right-clicking this will open a quicklist in which the "Empty Trash..." option is provided.
rm -rf ~/.local/share/Trash/files/*
rm -rf ~/.local/share/Trash/info/*
That's it.
Must Read
trash-cli
To empty trash from terminal:
sudo apt install trash-cli
Then just
trash-empty
Other commands from this package:
restore-trash (1) - Restore for Command line trash utility.
trash (1) - Command line trash utility.
trash-empty (1) - Empty for Command line trash utility.
trash-list (1) - List trashed files.
trash-put (1) - Command line trash utility.
trash-rm (1) - Removes files matching a pattern from the trash can