M BUZZ CRAZE NEWS
// general

How can I empty the trash without first opening it?

By Emma Johnson

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'.

1

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
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-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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy