Deleting a file on a Mac and securely erasing it are two different things. When you move a document to Trash and empty it, macOS removes its file-system reference, but that does not automatically mean every copy of its data has been physically overwritten.

If the file contains sensitive information such as financial records, private photographs, client documents, passwords or business data, ordinary deletion may not be enough.

Erase a File on Mac
Erase a File on Mac (Image source)

The complication is that most modern Macs use solid-state drives (SSDs) and Apple’s APFS file system. Traditional file-shredding techniques were designed around older hard drives, and they cannot guarantee that every physical copy of a file has been overwritten on an SSD.

So, what should you actually do?

For everyday privacy, use a secure file-erasure utility for files and folders, check for leftover copies and keep FileVault enabled. If you are preparing an entire Mac or storage drive for disposal, use Apple’s device-erasure process instead. These methods serve different purposes, and choosing the right one matters.

In this guide, I’ll explain how normal deletion works, why secure deletion is more complicated on modern Macs, and which method makes sense for different situations.

Quick answer: How do I securely erase a file on Mac?

To securely erase a file on a Mac:

  1. Identify whether the file is stored on an internal SSD, external SSD or mechanical hard drive.
  2. Check whether the file has copies in iCloud Drive, Time Machine backups or other synced locations.
  3. Use a file-erasure utility if you need a dedicated way to erase selected files and folders.
  4. Consider free-space wiping for previously deleted data, while understanding its limitations on SSDs.
  5. Keep FileVault enabled to protect data at rest.
  6. If you are disposing of the entire Mac, use Erase All Content and Settings rather than trying to shred individual files.

Important: No conventional software-based file overwrite can guarantee the physical removal of every historical copy from a modern SSD. For that reason, secure erasure and whole-device sanitisation should not be treated as interchangeable.

1. Why deleting a file on Mac does not always erase it securely

When you delete a file in Finder, macOS generally moves it to Trash. The file remains there until you empty Trash.

You can delete a file by selecting it and pressing Command + Delete. To empty Trash, Control-click the Trash icon and select Empty Trash, or use Finder’s Empty Trash command.

However, emptying Trash is not the same as overwriting the physical storage occupied by the file.

A file system maintains information about where files are stored. When you delete a file, the file system marks its allocated space as available for reuse. The underlying storage may not immediately be overwritten.

This creates a window in which deleted data may remain accessible, depending on the storage device, file system, encryption state and subsequent disk activity.

What happens when you delete a file?

Consider a practical example.

Suppose you have a PDF containing your bank statements named Bank_Statement_2026.pdf.

You move it to Trash and empty Trash. Finder no longer displays the file, and the space it occupied can be reused.

But several things may still matter:

  • The original data may remain in storage until the relevant blocks are reused or otherwise sanitised.
  • A Time Machine backup may contain an earlier version.
  • An APFS local snapshot may preserve an earlier file-system state.
  • An iCloud Drive or third-party cloud copy may still exist.
  • Other applications may have created previews, caches or temporary copies.

This is why I would not treat an empty Trash as proof that a sensitive document has been securely erased.

2. Why secure file deletion is complicated on modern Mac SSDs

The biggest mistake in many secure-deletion guides is assuming that every Mac stores data in the same way.

A traditional hard disk drive (HDD) and a modern SSD handle data differently. The distinction affects how reliably software can overwrite deleted files.

HDD vs SSD: What is the difference?

A mechanical HDD stores data on magnetic platters. An SSD stores data in flash-memory cells and uses an internal controller to manage where information is physically written.

FeatureHDDSSD
Storage technologyMagnetic plattersNAND flash memory
Data managementPhysical sectorsLogical-to-physical mapping
Wear levellingNoYes
Overwriting a file’s logical locationGenerally more predictableNot guaranteed to overwrite the original physical cells
Multi-pass shreddingCan overwrite addressable dataDoes not guarantee physical sanitisation
TRIMNot normally applicable in the same wayHelps the drive manage deleted blocks

What is SSD wear levelling?

SSD controllers distribute write operations across flash-memory cells to prevent some cells from wearing out faster than others.

This process is called wear levelling.

For example, imagine that a sensitive file originally occupies a particular logical storage location. A file-shredding application may attempt to overwrite that location with random data.

However, the SSD controller may write the new data to different physical flash cells. The old physical cells may not have been overwritten directly.

This means the software can successfully complete its write operation without proving that every previous physical representation of the file has been sanitised.

What is TRIM, and does it securely delete files?

TRIM is a command that allows the operating system to inform an SSD that certain storage blocks are no longer needed.

After a file is deleted, TRIM can help the SSD identify blocks that are available for garbage collection and future use.

However, TRIM is not a user-controlled, immediate secure-erasure command. It does not provide a simple way to verify that every physical remnant has been erased.

My takeaway: Traditional overwrite-based deletion is more predictable on magnetic hard drives than on modern SSDs. On an SSD-based Mac, encryption and appropriate device-level sanitisation are more important than simply increasing the number of overwrite passes.

3. Method 1: Use a dedicated file eraser for selected files and folders

If you want to remove specific confidential files while continuing to use your Mac normally, a dedicated file-erasure utility is one practical option.

Unlike ordinary Finder deletion, a file eraser is designed specifically for removing selected files, folders or other data categories.

For example, imagine that you have:

  • Old tax documents containing personal information.
  • Client contracts that you no longer need.
  • Private photographs.
  • Downloaded identity documents.
  • Confidential project files.

You can select the relevant files and folders for erasure rather than wiping the entire drive.

Using Stellar File Eraser for Mac

Stellar File Eraser for Mac provides options for erasing individual files and folders, wiping unused storage space, and removing selected internet, application and system traces.

The general workflow is:

  1. Download and install Stellar File Eraser for Mac from the official Stellar website.
  2. Open the application.
  3. Choose Erase Files & Folders.
  4. Add the files or folders you want to erase.
File erasing Mac
File erasing Mac
  1. Review the selected items carefully.
File erasing Mac
File erasing Mac
  1. Start the erasure operation.
  2. Review the completion status reported by the application.

The software also provides separate options for erasing unused space and selected traces, so you can choose the operation that matches your requirement.

You can find the software and its current feature details on the Stellar File Eraser for Mac product page.

One important distinction: An application reporting that its overwrite operation completed successfully does not establish that every physical SSD cell, APFS snapshot, cloud copy or backup containing the original data has been sanitised. I would not interpret a software completion message as a forensic guarantee.

When should you use a file eraser?

A dedicated file eraser is useful when you want to:

  • Erase selected sensitive files and folders.
  • Remove supported browser and application traces.
  • Attempt to wipe unused storage containing previously deleted data.
  • Perform recurring cleanup using a supported scheduling feature.
  • Manage erasure tasks without manually using Terminal commands.

For a modern SSD-based Mac, understand the storage limitations before relying on an overwrite-based tool for highly sensitive information.

4. Method 2: Wipe free space to address previously deleted files

What if you deleted a sensitive document several days ago and only now realised that ordinary deletion may not have been sufficient?

This is where free-space wiping comes into the discussion.

A free-space wiping utility attempts to overwrite storage areas that the file system considers unallocated. The objective is to make previously deleted data in those areas less recoverable.

For example, suppose you deleted an old folder containing:

  • Passport scans.
  • Financial spreadsheets.
  • Private photographs.
  • Business documents.

A free-space wipe attempts to overwrite unused storage that may contain remnants of those files.

How does free-space wiping work?

The basic process is:

  1. The utility identifies available or unallocated storage.
  2. It writes new data patterns into that available space.
  3. The file system and storage device process those writes.
  4. The utility reports the result of the operation.

This technique can be useful on conventional HDDs, where overwriting addressable free space is more predictable.

On SSDs, however, wear levelling and internal block management create the same limitation discussed earlier. The utility cannot necessarily address every physical flash cell containing old data.

Is free-space wiping enough on an SSD?

Not necessarily.

Free-space wiping is not equivalent to firmware-level SSD sanitisation or cryptographic erasure.

It may overwrite some logically available areas, but it cannot guarantee that all physical remnants have been eliminated.

Also, APFS uses copy-on-write behaviour and snapshots. A file may have been retained in another file-system state rather than simply occupying ordinary unallocated space.

I would therefore treat free-space wiping as a supplementary cleanup measure, not a universal solution for sanitising a modern Mac SSD.

5. Method 3: Enable FileVault to protect sensitive data

FileVault is Apple’s built-in full-volume encryption feature for macOS.

Instead of relying only on deleting individual files, FileVault protects stored data by making the encrypted volume inaccessible without the appropriate credentials or recovery key.

This is particularly important if your Mac is lost, stolen or accessed by someone who does not have your login credentials.

How to enable FileVault on Mac

On supported macOS versions:

  1. Open System Settings.
  2. Select Privacy & Security.
  3. Scroll down to FileVault.
  4. Select Turn On.
  5. Follow the on-screen instructions.
  6. Choose and securely store your recovery method.

You should keep your recovery key somewhere separate from the Mac. Losing the necessary credentials and recovery key can make your own data inaccessible.

Does FileVault securely erase individual files?

No. FileVault is primarily an encryption mechanism, not an individual file-shredding tool.

It protects data at rest, but enabling it does not mean that every previously deleted file has been independently overwritten.

There is an important distinction here:

  • If encryption was enabled before sensitive information was stored, the data was protected by encryption while stored.
  • If you enable FileVault later, Apple can apply its encryption protection to the existing volume, but this should not be treated as proof that previously deleted data remnants have been sanitised.

On Apple silicon and T2-equipped Macs, internal storage is encrypted automatically at the hardware level. Enabling FileVault adds a further layer of protection by requiring the appropriate credentials to unlock the volume.

For this reason, I recommend keeping FileVault enabled as a normal security practice rather than waiting until you have a sensitive file to delete.

6. Method 4: Remove leftover copies from Time Machine, iCloud and applications

One detail that is easy to overlook is that a file can exist in more than one location.

You may securely erase the working copy on your Mac but leave another copy in a backup or cloud service.

Here are the locations I would check.

Check Time Machine backups

Time Machine can retain earlier versions of files. It also creates local snapshots on APFS disks when automatic backups are enabled.

These local snapshots are generally retained for up to 24 hours or until macOS needs the space. External Time Machine backups can retain data for much longer, depending on backup history and available storage.

If a sensitive file was included in a backup, deleting the current Finder copy does not automatically remove every historical backup copy.

Review your backup history and apply the appropriate backup-retention or deletion process if the data must no longer be retained.

Check iCloud Drive

If the file was stored in iCloud Drive, deletion can synchronise across devices, but it may still remain in Recently Deleted for a period.

Apple provides a recovery window of up to 30 days for eligible deleted iCloud Drive files.

If you need to remove the cloud copy:

  1. Open iCloud Drive in Finder or at iCloud.com.
  2. Locate the deleted item in Recently Deleted.
  3. Select the item.
  4. Choose Delete to remove it permanently from that recovery area.

Check the other devices and services where you may have saved or shared the file.

Check browser and application traces

Some applications create supporting data when you open or process a file.

Depending on the application, this may include:

  • Recent-file lists.
  • Thumbnail previews.
  • Temporary files.
  • Application caches.
  • Download histories.
  • Browser history and form data.

These are not necessarily complete copies of the original document, but they may reveal information about your activity or contain related data.

A file-erasure utility with a dedicated traces-removal feature can help remove supported application and browser records. However, it cannot be assumed to remove every application record, cloud copy or system-level artefact.

7. Method 5: Erase the entire Mac before selling or giving it away

If your objective is to sell, trade in or give away your Mac, deleting files individually is the wrong approach.

You should erase the entire device using Apple’s recommended process.

For supported Macs with Apple silicon or an Apple T2 Security Chip, Apple provides Erase All Content and Settings through Erase Assistant.

This process is designed to remove personal data, settings and user information while returning the Mac to its setup state.

How to erase a Mac before selling it

Before starting:

  • Back up files you want to keep.
  • Make sure you have access to your Apple Account.
  • Disconnect external storage devices.
  • Check that you have the necessary recovery information.

Then:

  1. Open System Settings.
  2. Go to General.
  3. Select Transfer or Reset.
  4. Choose Erase All Content and Settings.
  5. Enter your administrator credentials if requested.
  6. Follow the Erase Assistant instructions.
  7. Confirm the erasure.

The Mac will restart and return to the initial setup experience.

If your Mac does not support Erase All Content and Settings, use the appropriate macOS Recovery and Disk Utility process for that model.

Apple specifically recommends Erase Assistant for preparing supported Apple silicon and T2-equipped Macs for sale or transfer.

Do not confuse this process with erasing one file. Erase All Content and Settings is intended for the whole Mac, not for removing an individual document while keeping your existing installation and files.

8. Can Terminal securely erase a file on Mac?

You may find older guides recommending commands such as srm, rm -P or other overwrite-based Terminal methods.

The problem is that these recommendations often come from a different storage era.

The standard rm command removes file-system entries. It is not a secure-erasure command.

Overwrite-oriented options are also not a dependable way to sanitise individual files on modern SSDs because the SSD controller can remap physical storage locations.

For example, this command removes a file:

rm ~/Desktop/Bank_Statement_2026.pdf

But it does not securely overwrite the file’s physical storage cells.

Similarly, using a command that attempts multiple overwrite passes does not solve the SSD wear-levelling problem.

I would not recommend relying on Terminal overwrite commands as a guaranteed secure-deletion method for a modern Mac.

9. Which secure file-erasure method should you choose?

The right method depends on what you want to erase and why.

Your situationRecommended approachImportant limitation
Delete an ordinary, non-sensitive fileFinder and Empty TrashNot a sanitisation guarantee
Erase selected sensitive filesDedicated file-erasure utilitySSD physical remnants may remain
Address previously deleted filesFree-space wiping where appropriateNot a complete SSD sanitisation method
Protect data if the Mac is stolenEnable FileVaultDoes not independently erase old deleted files
Remove supported browser and application tracesTraces-removal utilityDoes not remove every possible trace
Prepare a Mac for resaleErase All Content and Settings, where supportedWhole-device operation
Retire an external HDDAppropriate whole-drive overwrite or sanitisationMust verify the device and method
Retire an SSDManufacturer-supported sanitisation or appropriate cryptographic eraseRequires suitable device support and assurance

For organisations handling confidential or regulated information, the sanitisation method should be selected according to the sensitivity of the data and the organisation’s security requirements. NIST SP 800-88 Rev. 2 provides current guidance for media sanitisation and assurance.

10. Common mistakes to avoid when securely erasing files on Mac

Here are a few mistakes I would avoid.

1. Assuming Empty Trash means secure deletion

Emptying Trash removes the normal file-system entry. It does not prove that every underlying data remnant has been erased.

2. Assuming more overwrite passes always mean better security

A 35-pass overwrite sounds thorough, but it does not solve SSD wear levelling. Excessive writes can also add unnecessary wear to flash storage.

3. Forgetting Time Machine

A file may still exist in an older backup even after you have deleted the working copy.

4. Ignoring iCloud and synced folders

Deleting the local file does not necessarily remove all independent copies or recovery records.

5. Treating FileVault as a file shredder

FileVault protects stored data through encryption. It is not designed to individually overwrite selected files.

6. Using whole-drive erasure to remove one document

Erasing an entire drive is unnecessary when you only want to remove one file and continue using your Mac.

7. Trusting absolute claims from erasure software

An application can report a successful operation, but that is not the same as proving that all physical SSD remnants, snapshots and backups have been removed.

Frequently Asked Questions

Does emptying Trash permanently delete files on Mac?

Emptying Trash removes the file from its normal location and makes its storage space available for reuse. It does not guarantee that all underlying data has been overwritten or sanitised.

Can I securely delete a single file on Mac without deleting everything?

Yes. You can use a dedicated file-erasure utility to target individual files or folders. However, on SSD-based Macs, overwrite-based software cannot guarantee physical sanitisation of every storage cell.

Does Mac have a built-in secure file shredder?

Modern macOS does not provide a straightforward Finder feature that reliably shreds an individual file on an SSD. Finder’s normal deletion process and Disk Utility’s whole-drive erase function serve different purposes.

Is Secure Empty Trash still available on Mac?

No. Secure Empty Trash was removed from modern macOS versions. Older tutorials that recommend it should not be followed as current instructions.

Does rm -P securely erase files on Mac?

It should not be relied upon as a secure-erasure guarantee on modern SSD-based Macs. SSD wear levelling and internal block mapping prevent a software overwrite from guaranteeing that the original physical cells were sanitised.

Can deleted files be recovered from an SSD Mac?

Recovery depends on several factors, including the SSD controller, TRIM behaviour, encryption, file-system state and whether the relevant storage blocks have been reused or sanitised. There is no universal answer for every Mac.

Does FileVault make deleted files unrecoverable?

FileVault protects stored data through encryption. However, enabling it later should not be treated as a guarantee that previously deleted data remnants have been sanitised. It is best enabled before sensitive information is stored.

Does free-space wiping work on Mac SSDs?

Free-space wiping attempts to overwrite unallocated storage. It can be useful in some circumstances, particularly on HDDs, but it cannot guarantee the sanitisation of every physical SSD cell.

How do I permanently erase an external hard drive on Mac?

Connect the drive, open Disk Utility, choose View > Show All Devices, select the correct physical drive and choose Erase. If the drive is an HDD and compatible security options are available, you can use them. For SSDs, use an appropriate manufacturer-supported sanitisation method instead of assuming that ordinary formatting is sufficient.

What is the safest way to erase a Mac before selling it?

For supported Apple silicon and T2-equipped Macs, use Erase All Content and Settings. For older models, follow Apple’s model-specific Recovery and Disk Utility instructions.

Final verdict

Securely erasing a file on a Mac requires more than moving it to Trash and emptying it. The storage technology, file system, encryption settings, backups and cloud synchronisation all affect what remains accessible after deletion.

For selected files and folders, a dedicated file-erasure utility provides a convenient way to manage erasure operations. Free-space wiping and traces removal can address additional categories of data, but neither should be mistaken for guaranteed physical sanitisation of an SSD.

For everyday protection, keep FileVault enabled and pay attention to where your files are backed up or synchronised. If you are giving away or selling the entire Mac, use Apple’s device-erasure process.

The most important thing is to choose the erasure method based on the data you are protecting and the storage device you are using. A method that works reasonably well on an old HDD is not automatically the right method for a modern Apple silicon Mac.