Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

5 Answers 5

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
1  
There is no option to disable the trash entirely, see bug bugs.launchpad.net/nautilus/+bug/118988, 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. –  WarriorIng64 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

Hmmm.

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

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

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

 
discard

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.