Ask Different is a question and answer site for power users of Apple hardware and software. 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

My Question is I want to erase a file in OS X Securely (like the function of "Secure Empty Trash") so that, the file cannot be recovered by using recovery tools. I don't want to empty the trash. It is possible to erase Files Securely in OS X without moving the file to Trash ?

share|improve this question
TBH i think finding a "fix" now will just be delaying the inevitable change to this look that'll probably come with all new versions – AMomchilov Jul 28 '12 at 18:18
up vote 10 down vote accepted

You can always use the terminal command rm with the -P option:

[Option -P will] Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted.

If you're not handy with the Terminal, just:

  1. Open the (Found in /Applications/Utilities).
  2. Type cd and drag the folder which contains the file you want to delete, to the terminal window.
  3. Type rm -P FileName.extension and hit Enter
share|improve this answer
Or combine step 2 and 3 by typing rm -P followed by directly dragging the file into the terminal window. It's also worth mentioning that depending on the sector/cluster allocation process it is usually not guaranteed that the whole file will be overwritten. If you really care about these things use FileVault 2 to encrypt the whole drive. – patrix Jul 27 '12 at 13:59

srm is another shell utility for deleting files securely. It uses the 35-pass Gutmann algorithm by default, but -s (overwriting files with random data once) is faster and should be secure enough for most purposes.

share|improve this answer
In fact, choosing "Secure Empty Trash" in Finder invokes srm. – lupincho Jul 29 '12 at 16:23
thanks for the answer. I will try this :) – 231089 Jul 29 '12 at 17:01

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.