Finderlock logoFinderlock

Finderlock

File protection that lives in Finder.

Sign in
All posts
secure deletemac securityssdfilevaultencryption

How to Securely Delete Files on Mac (and What Works on an SSD)

Learn how to securely delete files on Mac: why Trash isn't enough, why overwriting fails on SSDs and APFS, and what to do with FileVault and encryption.

10 min read

Emptying the Trash only removes the file's directory entry. The data usually stays on the drive until the space is reused. On a Mac with an SSD you cannot reliably overwrite a single file, so secure deletion in practice means keeping the disk encrypted with FileVault, erasing the Mac before you sell it, and encrypting sensitive files before they ever need deleting.

Deletion is irreversible. Every step below that removes data is permanent. Check you have a backup of anything you still need before you start.

What emptying the Trash actually does

When you drag a file to the Trash, nothing is erased. Finder moves it to a hidden folder. When you empty the Trash, macOS removes the file's entry from the file system and marks its storage as free. The contents are still physically there until something else is written over them.

On a spinning hard drive, that means recovery software can often bring the file back until the space is reused. On an SSD the picture is less clear. macOS sends TRIM commands telling the drive which blocks are free, and the drive may erase them in the background. You do not control when, and you cannot verify it from the outside. So "probably gone" is the honest description, not "guaranteed gone".

What the built-in tools do well: Trash and rm are fast, and when FileVault is on, whatever is left on the disk is encrypted at rest. Where they fall short: neither gives you a way to prove that a specific file's bytes are gone.

Why overwriting is unreliable on SSDs and APFS

Overwriting a file several times made sense on old hard drives, where writing to a location replaced what was physically there. Three things break that assumption on a modern Mac.

  • Wear levelling. An SSD spreads writes across its flash cells to extend its life. When you "overwrite" a file, the controller often writes the new data to different cells and leaves the old ones until it decides to clean them up. You cannot address the physical cells from macOS.
  • Copy-on-write in APFS. APFS does not modify data in place. A changed block is written elsewhere and the file's metadata then points to the new copy. An overwrite tool can end up writing new blocks while the old ones remain untouched.
  • Snapshots. APFS snapshots, which Time Machine and macOS updates can create, preserve earlier states of the volume. A file you delete can still exist in a snapshot until that snapshot is removed.

The result is that a multi-pass overwrite of a single file on an SSD may not touch the original data at all. That is why Apple moved away from offering it, and why "just shred it" is poor advice for current Macs.

How to delete a file as safely as macOS allows

These steps give you the best realistic result on an SSD-based Mac.

  1. Check that FileVault is on. Open Terminal and run:

    fdesetup status
    

    You want to see FileVault is On. If it is off, turn it on in System Settings under Privacy & Security. With FileVault on, leftover deleted data is stored encrypted. On Apple silicon and T2 Macs the internal drive is encrypted in hardware regardless, but FileVault ties that encryption to your login password, which is what makes it useful against someone who has the machine.

  2. Delete the file and empty the Trash. In Finder, move the file to the Trash, then choose Finder > Empty Trash. Alternatively, in Terminal:

    rm -i ~/Documents/old-statement.pdf
    

    Warning: rm skips the Trash and cannot be undone. Double-check the path. Never run rm -r on a path you have not read twice, and never paste a recursive rm command you do not understand.

  3. Hunt down other copies. Deleting one file does not touch its siblings. Look in:

    • Time Machine backups and any other backup drive
    • iCloud Drive or another sync folder, which may keep deleted items for a limited time in a Recently Deleted area
    • Mail attachments, Downloads, and the Messages attachment store
    • Exports or cached versions made by the app that opened the file
  4. Check for local snapshots. To see whether APFS snapshots exist on the startup volume:

    tmutil listlocalsnapshots /
    

    Each line includes a date. To remove one, pass that date string to tmutil:

    sudo tmutil deletelocalsnapshots 2026-11-28-120000
    

    Warning: This permanently removes that snapshot and any ability to restore from it. Use the exact date string from your own listing, not the example above.

  5. Delete from backups last. Once you are sure the file is not needed, remove it from external backup drives and cloud storage too. Backups are the most common place for "deleted" files to survive.

Which method fits which situation

Situation Best method Notes
Everyday file on your Mac's internal SSD Delete, empty Trash, keep FileVault on Leftover blocks stay encrypted at rest
Sensitive file you may need to destroy later Encrypt it before storing, then delete the encrypted copy Without the password, remaining data is ciphertext
Selling, giving away or recycling an Apple silicon or T2 Mac Erase All Content and Settings Discards the encryption keys, see below
Older Intel Mac without a T2 chip Turn on FileVault first, then erase the disk and reinstall macOS from Recovery Encrypting before erasing helps on flash storage
External spinning hard drive Erase the whole drive in Disk Utility Overwrite options may be offered for HDDs, depending on macOS version
External SSD or USB flash drive Keep it encrypted from the start; erase the whole device when retiring it Physical destruction is the only certain option for extreme cases
Files in backups, iCloud or other sync Delete from each location, and check snapshots Often forgotten and the likeliest leak

What happened to Secure Empty Trash and srm

Older versions of macOS had a Secure Empty Trash command that overwrote files as they were deleted. Newer macOS versions no longer offer it, in line with the SSD problems above.

The srm command-line tool, which overwrote a file before unlinking it, is also gone on current macOS as far as we know. You can check on your own machine:

which srm

If that prints nothing, the tool is not installed. Some guides still mention it, and third-party versions exist, but they have the same limitations on SSDs and APFS, so do not treat them as a guarantee.

Erasing a Mac before you sell it

For the whole machine, the strongest tool you have is the one that discards encryption keys rather than trying to scrub bits.

On a Mac with Apple silicon or a T2 chip, the internal storage is always encrypted. Erase All Content and Settings removes your data and destroys the keys, so whatever is left in flash is unreadable. To use it:

  1. Back up anything you want to keep.
  2. Open System Settings > General > Transfer or Reset.
  3. Choose Erase All Content and Settings and follow the prompts. It will ask you to sign out of your Apple Account and turn off Find My.

Warning: This wipes the Mac, including every user account and file. It cannot be undone.

If your Mac is older or does not offer that option, enable FileVault, wait for encryption to finish, then erase the disk using Disk Utility in macOS Recovery and reinstall macOS. The exact Recovery steps vary by model and macOS version, so follow Apple's instructions for your Mac.

Using encryption as your deletion strategy

If you cannot make deletion certain, make the data useless in advance. Encrypted data that loses its key is, for practical purposes, gone. This is often called crypto-erasure, and it works the same on SSDs, HDDs and USB sticks.

Finderlock is built around this idea. When you protect a file or folder, it is encrypted into its own .secured container using AES-256-GCM through Apple CryptoKit. Folders are archived first and sealed in independent 4 MB chunks. The encryption key is derived from your password with PBKDF2-HMAC-SHA256, using 150,000 iterations and a random 32-byte salt. The point for this topic: the content is only ever stored as ciphertext in the container, so there is no plaintext copy sitting in free space for you to chase later.

A few honest limits:

  • Encryption is not retroactive. If a file sat unprotected on your SSD before you protected it, old blocks from that unencrypted period may still exist. FileVault is your safety net for that.
  • While an item is unlocked, it is readable like any other file. Lock it when you are done.
  • Backups of containers (Finderlock can back up encrypted containers to iCloud and Google Drive) hold ciphertext, but they are still copies. If you want a file gone, delete the backups too.

Day to day, you right-click a file or folder in Finder and choose Protect. The same menu has Unlock, Lock and Shred. Locked items leave a placeholder at the original location, and double-clicking it unlocks the item. (The Finder right-click menu needs macOS 14; the app itself needs macOS 13.5 or later.)

About Shred. On the Lifetime plan, Finderlock includes a Shred action that performs a DoD 5220.22-M style multi-pass overwrite. That approach suits conventional spinning disks. Given wear levelling and copy-on-write, we do not promise it removes every trace on an SSD or APFS volume. For SSDs, rely on encryption, FileVault and a full erase when the Mac leaves your hands.

If you want to compare approaches to locking things down, see how to password protect a folder on Mac: 4 encryption options compared, or read about how Finderlock handles encryption on the security page.

FAQ

Does emptying the Trash permanently delete files on a Mac?

It removes the file's entry and frees the space, but it does not erase the data right away. On an SSD with TRIM the data may be cleaned up eventually, though you cannot control or verify when. With FileVault on, anything left is stored encrypted.

Can deleted files be recovered after emptying the Trash?

Sometimes. Recovery is more likely on hard drives, and from Time Machine backups, snapshots or cloud Recently Deleted folders. On an internal SSD with FileVault, recovery of deleted data by someone else is much less likely, but treat that as a probability, not a promise.

Is Secure Empty Trash still available on macOS?

Newer macOS versions no longer offer it. Apple removed it because overwriting is unreliable on flash storage and on APFS.

Does the srm command still work?

It is not available on current macOS as far as we know. Run which srm to see whether it exists on your system. Even if you install a substitute, it cannot guarantee that an SSD erases the original blocks.

How do I securely wipe a Mac before selling it?

On Apple silicon or T2 Macs, back up your data, then use System Settings > General > Transfer or Reset > Erase All Content and Settings. On older Macs, turn on FileVault first, then erase the disk and reinstall macOS from Recovery.

Next step

Run fdesetup status now and confirm FileVault is on. Then pick the one folder you would least like to see leaked and keep it encrypted from here on. Finderlock's free plan covers 3 protected items, enough to try it on your most sensitive files. You can download it at finderlock.com, and the docs walk through setup.