Securely Delete Files on Mac: 3 Real Methods
In this article
To securely delete files on a Mac so they can’t be recovered, you have three reliable options: use Finder’s built-in “Secure Empty Trash” (if you’re on an older macOS), enable FileVault encryption and then delete normally, or use the built-in `srm` command in Terminal (on older systems) or the `rm` command with secure overwrite tools. On modern macOS (10.15+), Apple removed the secure empty trash option because SSDs handle data differently—so the most practical method is to encrypt your drive with FileVault and then delete files, or use a third-party tool like Permanent Eraser. This guide covers what actually works on current Macs and what to do if you’re on an older system.
What You'll Need
- Your Mac’s admin password (required for Terminal commands and FileVault setup).
- For the Terminal method: a working knowledge of copying and pasting commands—no coding skills needed.
- For the FileVault method: enough free time to let the encryption process complete (it runs in the background).
- Optional: a third-party app like Permanent Eraser (free, from the Mac App Store) if you want a graphical interface.
Step-by-Step
Method 1: Use Finder’s Secure Empty Trash (macOS Mojave and earlier)
- Move the files you want to delete into the Trash by dragging them there, or select them and press Command + Delete.
- Open Finder. In the menu bar at the top of the screen, click Finder > Preferences.
- In the Preferences window, click the Advanced tab.
- Check the box that says “Empty Trash securely”. (If you don’t see this option, you’re on a newer macOS—skip to Method 2.)
- Now, when you empty the Trash (right-click the Trash icon and choose Empty Trash, or press Command + Shift + Delete), the files are overwritten multiple times, making them unrecoverable.
- Note: This only works on hard disk drives (HDDs). On SSDs, macOS ignores this setting because solid-state drives handle overwrites differently.
Method 2: Enable FileVault Encryption (Works on All Modern Macs)
- Click the Apple menu () > System Settings (or System Preferences on older macOS).
- Click Privacy & Security (or Security & Privacy).
- Scroll down to the FileVault section and click Turn On.
- Choose how you want to unlock your disk if you forget your password: use your iCloud account or create a recovery key. Follow the prompts.
- Wait for encryption to complete. You can keep using your Mac; it encrypts in the background. You’ll see a progress indicator in System Settings.
- Once FileVault is on, simply delete files normally (drag to Trash and empty it). Because the entire drive is encrypted, the data is unreadable without your password—even if someone uses recovery software.
- Important: FileVault protects against recovery after deletion, but it doesn’t overwrite the data. If you need to ensure the data is physically gone (e.g., before selling the Mac), you must additionally use a secure erase tool or erase the whole drive.
Method 3: Use Terminal Commands (For Older macOS or Specific Files)
- Open Terminal (found in Applications > Utilities).
- Type
srmfollowed by a space, then drag the file(s) you want to delete into the Terminal window. The path will appear automatically. - Press Return. Enter your admin password when prompted (you won’t see characters as you type).
- For example:
srm /Users/yourname/Desktop/secret.txtpermanently deletes that file with a secure overwrite. - Note: The
srmcommand is deprecated on macOS 10.15 and later—it still works but may not be effective on SSDs. On modern Macs, usermafter enabling FileVault, or use a third-party tool.
Alternative: Use a Third-Party App
- Open the Mac App Store and search for “Permanent Eraser” (or a similar secure delete tool).
- Download and install it.
- Open the app, drag files into its window, and click the “Erase” button. The app overwrites the data multiple times.
- These apps work on both HDDs and SSDs, but note that on SSDs, overwriting may not work as expected due to wear leveling—encryption is still the best defense.
Common Mistakes
- Thinking “Secure Empty Trash” works on all Macs: It’s only available on macOS Mojave (10.14) and earlier. On newer versions, the option is gone.
- Using third-party “shredder” apps on an SSD: These apps may not actually overwrite data on SSDs because the drive’s controller spreads writes across cells. The result is that data may still be recoverable.
- Forgetting to empty the Trash after using FileVault: FileVault only protects data after it’s been deleted and the Trash is emptied. Until then, the file still exists.
- Deleting files from an external drive that isn’t encrypted: FileVault only protects your internal drive. If you delete files from an external USB drive, they’re not encrypted unless you encrypt that drive separately (via Finder’s “Encrypt” option in the context menu).
Tips
- Best practice for modern Macs: Turn on FileVault and keep it on. This is the only method that works reliably with SSDs.
- Before selling or giving away a Mac: Don’t just delete files—erase the entire drive using Disk Utility’s “Erase” option, then reinstall macOS. That ensures all data is gone.
- For sensitive single files: Use a third-party tool that supports “Gutmann” or “DoD 5220.22-M” overwrite methods, but only if you’re on an HDD.
- Check your drive type: Click the Apple menu > About This Mac > System Report > Storage. If it says “Solid State” or “SSD,” use FileVault. If it says “Hard Disk Drive” or “HDD,” you can use secure overwrite tools.
Troubleshooting
If “Secure Empty Trash” is missing from Finder Preferences
You’re on macOS Catalina (10.15) or later. Apple removed this feature. Use FileVault (Method 2) or a third-party app instead.
If FileVault won’t turn on
Make sure you have enough free space (at least 10% of your drive). Also, if you’re using an external display, try disconnecting it temporarily. If you have a firmware password, you may need to disable it first. Restart your Mac and try again.
If Terminal says “srm: command not found”
On macOS 10.15 and later, srm is no longer included. Use rm instead (but note it doesn’t overwrite). Better yet, use FileVault.
If a third-party secure delete app doesn’t work on your SSD
That’s expected. The app may still run, but it can’t force the SSD to overwrite cells. The only reliable way is to encrypt the drive (FileVault) or use the “Erase All Content and Settings” option in System Settings (on Apple Silicon Macs).
If you forget your FileVault recovery key
If you set up iCloud recovery, you can reset your password via Apple ID. If you have a recovery key and lost it, you may be locked out. Always store it in a safe place.
Frequently Asked Questions
Does emptying the Trash on a Mac permanently delete files?
No. Emptying the Trash removes the file’s reference, but the actual data remains on the drive until overwritten. On an HDD, it can be recovered with software; on an SSD, it’s harder but still possible in some cases.
Can I securely delete files on a Mac for free?
Yes. FileVault is built-in and free. On older macOS, the Secure Empty Trash option is free. Terminal commands are also free.
Is Secure Empty Trash available on macOS Sonoma?
No. It was removed in macOS Catalina (10.15) and has not returned. Use FileVault or a third-party app.
Does FileVault slow down my Mac?
Modern Macs have dedicated encryption hardware, so the performance impact is negligible. You may notice a slight slowdown during the initial encryption process, but it’s temporary.
Can I securely delete individual files without encrypting the whole drive?
On an HDD, yes—use a third-party tool or the srm command. On an SSD, no reliable method exists for individual files; encryption is the only practical way.
What’s the difference between “Erase” and “Secure Erase” in Disk Utility?
Disk Utility’s “Erase” simply reformats the drive, which doesn’t overwrite data. “Secure Erase” (only available for HDDs) overwrites the entire drive with random data. On SSDs, Disk Utility doesn’t offer secure erase because it’s ineffective.