Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I have some important and some unimportant items in trash.

I need to delete the unimportant files from trash, but when I empty the trash, my important files are also deleted.

How to delete trash items using terminal in MacOS?

share|improve this question
What operating system? – Doug Harris Oct 26 '10 at 13:18
up vote 1 down vote accepted

sudo rm --f

Then Drag and drop the file(s) you wish to delete onto the open Terminal window

Read more: How to Delete Files Using the Terminal in Mac OS X |

share|improve this answer
Thank you for you answer it really help to me – sri Oct 26 '10 at 13:31

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.