keepcalculator

06 Numbers and Powers

Delete Securely Mac: How to Erase Files for Good

Card No. 06·12176 · Updated · Standard formula, shown below

To delete files securely on a Mac, you need to overwrite the data with random characters or use FileVault encryption, because the standard Trash empty only removes the file’s pointer, leaving the actual data recoverable. This article explains the built-in options, their limitations, and the best practices for ensuring deleted files cannot be recovered.

Why Standard Deletion Isn’t Secure

When you drag a file to the Trash and empty it, macOS removes the file’s entry from the filesystem index. The space is marked as available, but the underlying data remains on the disk until it is overwritten by new data. With the right software, someone can recover that data. This is true for both HDDs and SSDs, though the mechanics differ.

macOS Built-In Secure Erase Options

macOS provides a few built-in methods for secure deletion, but they have changed over the years and are not all available on modern systems.

  • Secure Empty Trash (deprecated): Older macOS versions (pre-10.11) had a “Secure Empty Trashâ€� option that overwrote the file’s data multiple times. It was removed because it was ineffective on SSDs and not fully secure on HDDs.
  • Disk Utility Erase: You can securely erase an entire drive using Disk Utility. For HDDs, it offers “Security Optionsâ€� to overwrite the drive up to 7 times. For SSDs, it only offers a single pass, which is generally sufficient.
  • FileVault: FileVault encrypts the entire disk. When you delete a file, the encrypted data is left behind, but without the encryption key, it is unreadable. This is the most effective built-in method for SSDs.

How FileVault Makes Deletion Secure

FileVault uses AES-128 encryption with a key derived from your password. When you empty the Trash, the file’s ciphertext remains on the disk, but the key needed to decrypt it is destroyed (or never stored). Even if the raw data is recovered, it is just random-looking bytes. To make this work, you must enable FileVault before you delete the sensitive files. If you enable it after deletion, the old unencrypted data may still be recoverable.

Third-Party Secure Deletion Tools

For users who want a simple way to securely delete individual files without encrypting the whole disk, third-party tools are an option. These tools work by overwriting the file’s data with patterns (e.g., zeros, random data) before unlinking it. Some popular ones include:

  • Permanent Eraser – a free, open-source tool that integrates with the Finder’s context menu.
  • Secure Delete – a command-line utility that overwrites files and free space.
  • Paragon Disk Wiper – a commercial tool that can wipe entire drives.

When choosing a tool, ensure it supports your macOS version and your drive type (HDD vs. SSD). Some tools may not work correctly on SSDs due to wear leveling and the TRIM command.

SSD vs. HDD: Different Challenges

The type of storage drive you have dramatically affects how secure deletion works.

  • HDD (Hard Disk Drive): Data is written to physical platters. Overwriting the same sectors multiple times (e.g., 3 to 7 passes) makes recovery extremely difficult. This is why older “Secure Empty Trashâ€� was designed for HDDs.
  • SSD (Solid State Drive): SSDs use flash memory with a wear-leveling controller that distributes writes across all cells. This means you cannot guarantee that overwriting a file’s logical address actually overwrites the same physical cells. Also, the TRIM command automatically erases deleted blocks, which actually helps security but makes software-based overwriting unreliable. For SSDs, the only truly secure method is full-disk encryption (FileVault).

How to Securely Delete Files (Step-by-Step)

Here are the practical steps to securely delete files on a Mac, depending on your situation.

  1. Enable FileVault (Recommended): Go to System Settings → Privacy & Security → FileVault, and turn it on. This encrypts your entire drive. After this, simply emptying the Trash is secure because the data is encrypted.
  2. For individual files on an HDD (without FileVault): Use a third-party tool like Permanent Eraser. Right-click the file and choose “Secure Delete.â€� The tool will overwrite the file’s data before removing it.
  3. For an entire drive: Use Disk Utility. Select the drive, click “Erase,� choose a format, then click “Security Options� and select the number of passes (for HDDs). For SSDs, a single pass is enough.
  4. For free space on an HDD: Some third-party tools can overwrite free space to remove remnants of previously deleted files. This is slow and not necessary if you use FileVault.

Common Mistakes and Misconceptions

Many users believe that simply moving a file to the Trash and emptying it is enough. That is false. Another misconception is that “Secure Empty Trashâ€� is still available in modern macOS – it is not. Also, some think that overwriting an SSD multiple times is better, but it actually reduces the drive’s lifespan without improving security. The most common mistake is enabling FileVault after you’ve already deleted sensitive files – the old data may still be on the disk unencrypted.

Frequently Asked Questions

Q: Is Secure Empty Trash available on my Mac?
No, Secure Empty Trash was removed in OS X 10.11 El Capitan (2015). It is not available on any macOS version released after that.

Q: Does emptying the Trash on a Mac with FileVault securely delete files?
Yes, with FileVault enabled, the file’s encrypted data remains but is unreadable without the key. So emptying the Trash is effectively secure.

Q: Can I securely delete files on an SSD without FileVault?
It is very difficult. Because of wear leveling, you cannot guarantee that overwriting the file’s logical location will overwrite the physical data. The TRIM command helps, but it may not be immediate. FileVault is the recommended solution for SSDs.

Q: What is the difference between overwriting and encrypting?
Overwriting replaces the data with new patterns, making the original unreadable. Encrypting transforms the data into ciphertext, which is unreadable without the key. For SSDs, encryption is more reliable because overwriting is not guaranteed.

Q: Can I recover a file after using a secure delete tool?
No, if the tool correctly overwrites the data, recovery is practically impossible. However, some tools may not work on SSDs, so always verify the tool’s compatibility.

Q: How many passes do I need to securely erase an HDD?
For modern HDDs, a single pass of zeros is generally considered sufficient. Multiple passes (3, 7, 35) were needed for older drives with different recording technologies, but they are not necessary today and can significantly slow down the process.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →