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 ?
You can always use the terminal command
rm with the
[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:
- Open the Terminal.app (Found in /Applications/Utilities).
cdand drag the folder which contains the file you want to delete, to the terminal window.
rm -P FileName.extensionand hit Enter
securely delete command overwritten the areas on the storage medium. In
OS X El Capitan 10.11 it was still accessible via the terminal. It was called
srm - and has disappeared since
macOS Sierra 10.12
-P option ensures that when deleting the memory areas are overwritten three times before the memory space is released. For example,
rm -P Desktop/File.txt deletes the file
File.txt from the desktop. The additional option
-R also removes folder contents and subfolders (as well as their contents)
rm -RP ~/Desktop/[Directory/File]
Deletes folders and their contents. To avoid typing errors, enter
rm -RP including a space at the end.