Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Secure Delete Files on Mac: Real Erase Guide

· 6 min read · Home Tech

In this article
  1. Why Standard Deletion Isn’t Secure
  2. What Happened to Secure Empty Trash?
  3. Method 1: Use FileVault Encryption (Best for SSDs)
  4. Method 2: Securely Erase a File with Disk Utility (for HDDs)
  5. Method 3: Use the Terminal with `srm` (Deprecated) or `rm -P`
  6. Method 4: Third-Party Secure Delete Tools
  7. Common Mistakes and Misconceptions
  8. How to Choose the Right Method
  9. Frequently Asked Questions

To securely delete files on a Mac so they cannot be recovered, you need to overwrite the data or use FileVault encryption—the Trash and standard delete only remove the file’s reference, not its contents. This guide explains the built-in methods (Secure Empty Trash was removed, but alternatives exist), how to permanently erase individual files, and why SSDs change the rules. You’ll learn the exact steps for each approach and what actually protects your data.

Why Standard Deletion Isn’t Secure

When you move a file to the Trash and empty it, macOS marks the disk space as available but does not erase the file’s data. The file remains physically on the drive until another file overwrites it. Recovery tools can scan for these remnants and reconstruct files, especially if the drive has plenty of free space. This is true for both HDDs (hard disk drives) and SSDs (solid-state drives), though SSDs have additional complications.

For most users, the risk is low—recovery requires specialized software and physical access to the drive. But if you’re selling a computer, disposing of a drive, or handling sensitive documents, standard deletion is not enough.

What Happened to Secure Empty Trash?

Older macOS versions (through macOS 10.12 Sierra) had a “Secure Empty Trash” option that overwrote deleted files multiple times. Apple removed it in macOS 10.13 High Sierra. The official reason is that on SSDs, the flash controller manages writes in ways that make overwriting unreliable—the drive may write new data to different physical cells than the ones containing the old data. So the “secure” overwrite didn’t actually guarantee erasure on SSDs. Apple replaced it with a recommendation: use FileVault encryption from the start, so that deleted files are encrypted and effectively unrecoverable without the encryption key.

Method 1: Use FileVault Encryption (Best for SSDs)

FileVault encrypts the entire startup disk. When you delete a file, its encrypted data remains, but without the encryption key it’s unreadable. As long as you keep your FileVault password and recovery key safe, deleted files are practically unrecoverable. This is the most reliable method on modern Macs with SSDs.

  1. Open System Settings (or System Preferences on older macOS).
  2. Click Privacy & Security (or Security & Privacy).
  3. Click Turn On FileVault.
  4. Choose how to unlock the disk and reset your password if you forget it (iCloud account or recovery key).
  5. Follow the prompts; encryption happens in the background.

Once enabled, all data on the drive is encrypted. Deleted files are still there, but they’re encrypted, so recovery tools only see gibberish. If you later sell the Mac, you can erase the drive and disable FileVault—the data becomes unrecoverable.

Method 2: Securely Erase a File with Disk Utility (for HDDs)

If you have an older Mac with a traditional hard drive (not SSD), you can securely erase free space using Disk Utility. This overwrites the unused space on the drive, including deleted files.

  1. Open Disk Utility (in /Applications/Utilities).
  2. Select your startup disk (usually “Macintosh HD”).
  3. Click Erase in the toolbar.
  4. Choose a format (APFS or Mac OS Extended) and a scheme (GUID Partition Map).
  5. Click Security Options and choose how many times to overwrite (from “Fastest” to “Most Secure”).
  6. Click Erase to wipe the entire disk. Note: this erases everything, not just one file.

To erase only free space (not the whole disk), older Disk Utility versions had a “Erase Free Space” option, but it’s no longer available in current macOS. For a single file, you’d need a third-party tool (see below).

Method 3: Use the Terminal with `srm` (Deprecated) or `rm -P`

macOS used to include a command-line tool called srm (secure remove) that overwrote files before deletion. It was removed in macOS 10.13 as well, because it didn’t work reliably on SSDs. However, the rm command has a -P flag that overwrites a file three times before deleting it. This works on HDDs and is better than nothing on SSDs, but it’s not a guarantee on flash storage.

  1. Open Terminal (in /Applications/Utilities).
  2. Type rm -P /path/to/file and press Return.
  3. Replace /path/to/file with the actual file path (you can drag the file into the Terminal window to insert its path).

This overwrites the file three times with random data. On an HDD, that’s a solid secure delete. On an SSD, the flash controller may not honor the overwrite, so it’s not fully reliable.

Method 4: Third-Party Secure Delete Tools

Several third-party apps offer secure file deletion with more control. They work by overwriting the file’s data multiple times (e.g., Gutmann method, 35 passes) and then deleting it. Some also offer “free space wiping” to clean up remnants of previously deleted files.

  • Permanent Eraser – adds a secure delete option to the right-click menu.
  • Secure Delete – a simple drag-and-drop tool.
  • File Shredder – overwrites with random data.

When choosing a tool, check reviews and make sure it’s compatible with your macOS version. Most are free or low-cost. Remember: on SSDs, no software can guarantee that a specific file’s data is physically erased because the drive’s wear-leveling algorithm may move data around. The only sure way on an SSD is FileVault encryption (or physically destroying the drive).

Common Mistakes and Misconceptions

  • Emptying Trash is secure – False. It just marks space as free.
  • Overwriting multiple times is always better – On HDDs, one pass is often enough for modern drives; on SSDs, multiple passes don’t help because of wear leveling.
  • Secure delete on SSD works like HDD – It doesn’t. SSDs use a translation layer that makes overwriting unpredictable.
  • Deleting a file and then writing new files over it is enough – Not necessarily; the original data may still be in unallocated space.
  • FileVault slows down the Mac – Minimal on modern Macs; the encryption is hardware-accelerated.

How to Choose the Right Method

Consider your drive type and the sensitivity of the data:

  • SSD (most Macs since ~2013) – Use FileVault encryption. If you’re selling or disposing of the Mac, erase the drive with Disk Utility (which issues an SSD secure erase command) and then reinstall macOS.
  • HDD (older Macs) – Use Disk Utility’s “Erase Free Space” (if available) or a third-party tool with multiple overwrites.
  • Individual sensitive files – Use rm -P in Terminal or a third-party app, but understand the SSD limitation.
  • Entire drive disposal – For HDDs, physically destroy the drive or use a degausser. For SSDs, use the built-in secure erase (via Disk Utility) or destroy the chips.

Frequently Asked Questions

Is Secure Empty Trash still available in macOS?

No. Apple removed it in macOS 10.13 High Sierra. The replacement is FileVault encryption, which encrypts the whole disk so deleted files are unreadable.

Can I securely delete a single file on an SSD?

Not with 100% certainty. Because of wear leveling, the SSD may have copies of the data in cells that aren’t overwritten. The only reliable way is to have used FileVault from the start, so the file was encrypted.

Does the `rm -P` command work on modern Macs?

Yes, it’s still available in Terminal. It overwrites the file three times before deleting. It works on HDDs, but on SSDs it’s not a guarantee due to the flash translation layer.

What’s the best way to prepare a Mac for resale?

Turn off FileVault, then use Disk Utility to erase the entire drive (choose “Security Options” and select the most secure overwrite for HDDs; for SSDs, a standard erase is usually sufficient because the drive’s secure erase command is automatically used). Then reinstall macOS.

Is one overwrite pass enough?

For modern HDDs, yes, a single pass is generally sufficient. Multiple passes were needed for older drives with high data density. On SSDs, even multiple passes don’t guarantee erasure.

Can I recover a file after using a secure delete tool?

If the tool properly overwrites the data (on an HDD), recovery is extremely unlikely. On an SSD, it’s possible that remnants remain, so recovery tools might find fragments. That’s why encryption is the preferred method.