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 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'.
1If 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 1 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.
trash-cli
To empty trash from terminal:
sudo apt install trash-cliThen just
trash-emptyOther 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 More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"