Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

From what I gather, the idea of a "trash can" is of Windows descent, and was to make a user's life easier. However, when I go to delete a file, I don't hit delete unless I know I don't need it and will never need it ever again. Period. I'm currently running OpenSuse and the trash can is a confusing "feature" (as I can't seem to find WHERE it is) that sometimes even creates cute little directories on my flash drives for trash.

Basically put, I don't like the trash can idea. Is there a way I can "turn it off"? I'm assuming it's a filesystem thing, so it might be harder to do then I predict. Basically, I would like to perform a rm -rf on the file that is selected (-r in case it is a directory). Is this at all possible?

share|improve this question
    
This is in a desktop environment I take it? Which one? –  Michael Mrozek Aug 12 '11 at 18:43
    
Currently I'm using KDE –  maxmackie Aug 12 '11 at 19:16
1  
'How to disable the trash can under KDE 4?' as new title? –  maxschlepzig Aug 12 '11 at 19:33
    
@max, changed the title and added the kde tag. However, I'd like to know how to do this is all popular environments. –  maxmackie Aug 12 '11 at 19:42

3 Answers 3

up vote 4 down vote accepted

Under KDE you can hit shift+del to directly delete selected files (or directories). Or you can press shift while chosing 'move to trash ...' in the context menu, which has the same effect.

IIRC this also works under Windows.

Probably there is some trash-properties dialog under KDE to globally disable the trash feature. It is possible to configure it in Dolphin, but perhaps there is also a more general solution in KDE available.

share|improve this answer
    
I'm currently using dolphin and the method described in the post didn't fully work. I'm guessing that was with a previous version. –  maxmackie Aug 12 '11 at 21:00

I'm not sure about KDE, but many DEs support the shift+del for removal of files bypassing the trash.

share|improve this answer

You can redefine Delete key action in Dolphin. Settings->Configure Shortcuts Delete key is now actually delete

Also remove Trash entry from Places panel. And your Dolphin is "Move to trash" free.

Actually you still have it on file/foldercontext menu..

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.