Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I select the file and push delete this file is automatically landing in the trash. How can I delete files bypassing trash without using a mouse?

share|improve this question
up vote 27 down vote accepted

Select the files and leave SHIFT pressed while pressing the DELETE button or option.

Example: Select with CTRL several files while clicking on them.

Leave SHIFT pressed while pressing the DELETE button will delete them permanently.

To select multiple files. Click the first file and then leave SHIFT pressed while selecting the last file you want to select. It is the same thing as dragging the mouse while pressing the left mouse button.

share|improve this answer

In Nautilus -> Preferences select the following

alt text

to have the option to delete files rather than putting to trash in the right-click context menu.

share|improve this answer
Hey Takkat you shouldn't adapt my question to fit your answer! I asked clearly. Delete file using keyboard. – vrcmr Dec 26 '10 at 0:36
If by "adapt my question" you mean the revision of the title, Takkat did not do that. Look at the revision history for details. In my opinion the revision did make the question more understandable (and more importantly, more Googleable). – msw Dec 26 '10 at 3:36
@alfalive: At the time of my answer I couldn't see anything related to "keyboard only" in your question. As this was already perfecty anwerded by CYREX I felt that a reference to standard Nautilus settings is badly missing. Unfortunately from your last edit of your question my answer looks pretty off topic now. Please consider that other people may also read this ;) – Takkat Dec 26 '10 at 7:33

Without using a mouse, you can delete (bypassing trash) straight from the command line, if you're comfortable doing that.

  1. Open a terminal window.
  2. Use the cd command to change directory to where the file is.
  3. Use the ls command to list the files in the directory you've changed into, to make sure you're looking at the right place. (Use ls | less if the output is too long to read; then q will quit from reading the list and back to the terminal.)
  4. Use the rm -v command to verbosely remove the file (deleting it, bypassing trash).
  5. If you get errors: rm -Rfv is necessary to forcibly Recursively remove a directory. And rm -fv will force other deletions that are sticking against your will.

For example:

me@mypc:~$ cd /home/steven/Downloads/
me@mypc:/home/steven/Downloads$ ls
me@mypc:/home/steven/Downloads$ rm -v file14
'removed 'file14'
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.