Industry guru Dave Taylor offers free tech support on a wide variety of technical and business topics, including HTML, Apple iPhone, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

How can I securely delete files on my Mac?

A friend showed me how she can recover deleted files on her Mac OS X system using some utility or the other and it got me to thinking... how do I delete files on my own Mac so that she - or anyone else - can't recover them later?


Dave's Answer:

The Patriot Act requires me asking whether you want to securely delete files to prevent authorized law enforcement officials from their legal investigations?

Just kidding. I don't really care what you're deleting. :-)

Turns out that the Mac OS X system supports a very slick secure delete that can be easily enabled any time you feel like you might have snoops poking around your ex files, whether legitimately or not. Further, you can also just securely delete your trash when you have something particularly sensitive to delete, and otherwise leave it as a standard (e.g. recoverable) deletion.

First off, a secure deletion is one where the file system actually writes garbage over the existing contents of your file as part of teh deletion. Even if you dig around in the file system itself to find where the file was, the data's gone. A normal deletion, by contrast, simply frees up the pointer to the file contents, while leaving the actual contents untouched until another file overwrites it, which could happen in a few seconds or not for a week.

Let me go backwards and start by showing you how to securely delete what's currently in your trash. The easiest way is to look at the options on the "Finder" menu:

mac secure empty trash menu

You can see that right below the usual "Empty Trash..." is "Secure Empty Trash...". Choose that, and:

mac secure empty trash warning

Notice the slightly different wording in the warning message. If you really want to delete the trash 'securely', go for it.

Another way you can get to this if you don't remember the menu option is to just click on the trash icon itself in the Dock. It opens and you'll see something like this:

mac trash folder empty securely

Click on "Empty Securely" and you've removed anything recoverable from your disk.

Finally, you might just want to do what I've done: set up your preferences to automatically make every delete a secure one. This can be done by clicking on Preferences... in the Finder, then clicking on the "Advanced" option. Now you'll see this:

mac finder preferences advanced

Secure deletion is one of the many ways that the Mac OS X system makes it easy to secure your data in this age of identity theft. Useful indeed.



Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon    

Subscribe!

Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.

Comments

The "Empty Securely" button is not there unless you have the "Empty Trash Securely" option selected.

Also, in Terminal, it looks like you can use: "rm -P [Path to file]" to securely delete one file rather than your entire trash.

Posted by: MacTipper at January 12, 2009 9:22 AM

Although you may be able to securely delete files, if you use Time Machine you may have a back up of these files that are easily restored. Does a secure deletion remove it from the Time Machine backup?

Posted by: John at January 12, 2009 5:47 PM

Also, to securely delete files you've already deleted, use DiskUtility's "Erase Free Space" command. This will erase all the leftover bits from old deleted files. I recommend the 7-pass erasing method.

Posted by: DeadParrot at January 12, 2009 8:50 PM

how do I know that my site is activated and when do I get my first cheque can I afford to trust the company I am really confused if so then can u PLs refund my money back to my address

Posted by: bertha marshall at January 13, 2009 10:09 PM

As pointed out previously, the Empty button only becomes the Empty Securely when you set that option in the Finder Preferences.

On top of that, there's no need to double click the trash in the Dock to open the Trash window- a single click works fine.

I have to say that I'm a little disappointed in the quality of this article.

Posted by: al at January 22, 2009 7:52 PM

I would invite you to contribute some material to the site, Al, if you'd like to see things presented differently. My key question is always: will this answer the user's question quickly and efficiently?

Posted by: Dave Taylor at January 23, 2009 10:56 AM

Thank for posting this, Dave! Again you have helped me.

- Jack, Sweden

Posted by: Jack H at January 31, 2009 3:18 PM

Thanks Master, I'm a newbie your information about How can I securely delete files on my Mac? is very helpful for me.

Best fro you...thank you!!!

Posted by: Nyoman at February 22, 2009 12:17 AM

I'm still unable to delete files I have downloaded. They are stored in my download file and I cannot figure out how to get rid of these unwanted files. Please help,

Emile

Posted by: Emile at February 25, 2009 4:32 PM

Very nice site. Seems like you have a lot of useful information. I'll be visiting again soon.

Posted by: Chris at September 3, 2009 11:52 PM

I have a lot to say, but ...
Starbucks coffee cup I have a lot to say, and questions of my own for that matter, but most of all I'd like to say thank you for all your efforts on this Web site by buying you a chai!

I do have a comment, now that you mention it!











Remember personal info?


Please note that I will never send you any unsolicited commercial email. Ever.

While I'm at it, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site.









snow leopard pre order advert amazon

Follow me on Twitter @DaveTaylor

Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.


Help!





Subscribe to
Ask Dave Taylor!

Add to Google Reader
Add to My Yahoo!
Subscribe in NewsGator Online

RDF   XML

Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.


Recent Entries
Book Links
© 2002 - 2009 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site.

[whiteboard marker tray]
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.