Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I don't believe in Trash Bin and when I delete something I want it to be gone forever, how to turn off the Trash?

P.S. When I delete files from the console do they also go to Trash?

share|improve this question

6 Answers 6

up vote 7 down vote accepted

You can add a delete action as described at How to delete files bypassing trash . Files deleted from the console are immediately removed, but please note that under some circumstances they can still be recovered, if you want to securely delete files use the "wipe" command.

share|improve this answer
I just dont want to think about empting the trash, thx. – UAdapter Jan 7 '11 at 18:06
There is no option to disable the trash entirely, see bug, what you can do is to enable the delete files option and remap the DEL key to invoke it. In practice this will disable the trash bin from the file manager. – João Pinto Jan 7 '11 at 18:13
Wont get rid of the trash from Unity Laucnher though – Kyle Clarke Jan 7 '11 at 20:24
@KyleClarke Right. It's currently not possible to remove Trash from the Unity launcher, as this is by design, and would require modifying Unity's source code and recompiling. – Christopher Kyle Horton Sep 17 '12 at 19:38

You can use Shift+Delete instead of Delete to delete file(s) forever, but don't forget; If you delete the file forever, you can't easily get it back.

share|improve this answer


Places->Home Folder->Edit->Preferences->Behavior->Include a Delete command [...]

Yes, console deletes have no "recycle" action - they are gone.

share|improve this answer

I too am one of those who have been bugged by this problem for a number of years ... unsatisfied with the existing proposals, I've recently taken the time to investigate a solution myself.

Starting with the premise that I want the Trash to be gone system-wide, I've found that -- for the time being -- the only real solution is to create a custom-compiled version of libgioGIO) which is modified to call g_file_delete() every time an application calls g_file_trash().

For all technology savvy users interested in this solution: I've just recently posted a step-by-step guide on The IT community:

Globally disable GNOME's Trash in Debian-based distributions

I hope this is of (some) help to those who hate the Trash with the same passion as I do ...

share|improve this answer

You can set the immutable bit.

To do so, first empty the trash:

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

And then:

sudo chattr +i ~/.local/share/Trash/

After that, when you delete or move something to the trash, you'll get the following message:

Cannot move to trash, delete it immediately?

EDIT: Actual results below

chattr: Inappropriate ioctl for device while reading flags on /home/sg1/.local/share/Trash/
share|improve this answer

On my mp3 player I added a file called .Trash-1000 (not a directory), which just gets in the way.

I hit Delete and get prompted: Cannot move file to rubbish, do you want to delete immeditately? with the default action Delete.

Good enough for my needs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.