keepcalculator

06 Numbers and Powers

Permanently Delete Files From Mac: Full Guide

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

To permanently delete files from a Mac, you must bypass the Trash by using the Option-Command-Delete shortcut, emptying the Trash, or using the Terminal’s rm command. These methods erase the file’s data from your drive, making it unrecoverable with standard tools. This guide explains each method, how to verify deletion, and what to do if you need to ensure the data cannot be recovered with specialized software.

What “Permanent� Deletion Actually Means

When you delete a file normally, macOS moves it to the Trash, where it remains until you empty it. Even after emptying the Trash, the file’s data is still physically on your hard drive or SSD; the space is simply marked as available for new data. Until that space is overwritten, recovery software can often reconstruct the file. Permanent deletion means you want the data gone immediately and without a trace, which requires a different approach.

Method 1: Use the Keyboard Shortcut

The quickest way to delete a file permanently is to select it in Finder and press Option-Command-Delete. This bypasses the Trash entirely. A confirmation dialog appears asking if you are sure. This works for one file or multiple selected files. It does not work for files that are in the Trash itself.

Method 2: Empty the Trash

If the file is already in the Trash, you can empty it. Click the Trash icon in the Dock, then click the Empty button in the top-right corner. You can also right-click the Trash icon and select Empty Trash. To skip the confirmation dialog, hold the Option key while clicking Empty – it changes to Empty Trash… without the ellipsis, meaning it will delete immediately.

Be aware that emptying the Trash does not overwrite the data. It only marks the space as free. On a modern Mac with an SSD, the TRIM command may eventually erase the underlying flash cells, but this is not guaranteed to happen immediately or at all.

Method 3: Use Terminal (rm Command)

For advanced users, the Terminal offers a direct way to delete files permanently. Open Terminal (in /Applications/Utilities/) and use the rm command. For example, to delete a file named “oldreport.pdf� on your Desktop, type:

rm ~/Desktop/oldreport.pdf

To delete a folder and everything inside it, use the recursive flag:

rm -R ~/Desktop/OldFolder

There is no confirmation and no Trash. The file is gone immediately. Be extremely careful with this command – a typo can delete the wrong file or even your entire home directory if you use rm -R with a wrong path.

How to Securely Overwrite Deleted Files

If you need to ensure that deleted files cannot be recovered with data-recovery software, you must overwrite the data before it is marked as free. On older macOS versions, the Finder had a “Secure Empty Trash� option, but it was removed in macOS Sierra (10.12) because it was ineffective on SSDs. On modern Macs, the recommended approach is to use FileVault (full-disk encryption). If your drive is encrypted, deleted files are encrypted, and without the password, recovery is practically impossible.

For an extra layer of overwriting on a hard disk drive (HDD), you can use the srm command in Terminal (secure remove), which overwrites the file multiple times before deleting. However, srm is not available on all macOS versions and is not recommended for SSDs because it causes unnecessary wear and may not work reliably due to the way SSDs manage data.

Common Mistakes and Misconceptions

  • Emptying Trash is not permanent enough for sensitive data. As explained, the data remains recoverable until overwritten.
  • The “Secure Empty Trashâ€� option is gone. It was removed because it gave a false sense of security on SSDs.
  • Deleting a file from a cloud-synced folder (like iCloud Drive) also deletes it from the cloud. If you want to keep a copy elsewhere, move it out first.
  • Using Disk Utility to erase free space is only possible on HDDs. The “Erase Free Spaceâ€� option is not available for SSDs.
  • Third-party “file shredderâ€� apps are not necessary for most users. They often just overwrite the file, which is not effective on SSDs.

What About Time Machine Backups?

Deleting a file permanently from your Mac does not delete it from any Time Machine backups. If you have an external backup drive, the file may still exist there. To permanently remove it from all backups, you must delete it from the Time Machine backup as well. Open Time Machine, navigate to the date when the file existed, select it, and choose “Delete� from the gear menu. Alternatively, you can use the tmutil command in Terminal to delete specific backup snapshots, but this is advanced.

Frequently Asked Questions

Can I recover a file after using Option-Command-Delete?

With standard tools, no. The file is not in the Trash. However, with specialized data-recovery software, it may still be possible if the data has not been overwritten. For truly sensitive data, use FileVault or overwrite the free space.

Does emptying the Trash permanently delete the file?

No. It only marks the space as available. The data remains on the drive until overwritten by new files. On SSDs, the TRIM command may eventually erase it, but this is not immediate or guaranteed.

Is there a secure delete option in macOS anymore?

No. Apple removed the “Secure Empty Trash� option in macOS Sierra. The recommended method is to enable FileVault, which encrypts the entire drive, making deleted files unreadable without the password.

How do I permanently delete files on an external drive?

You can use the same methods (Option-Command-Delete or Terminal). However, if the drive is not encrypted, the data may still be recoverable. For external drives, you can use Disk Utility to erase the entire drive with a security option, but this deletes everything, not just one file.

Can I permanently delete files from iCloud Drive?

When you delete a file from iCloud Drive, it goes to the Recently Deleted folder in iCloud.com for 30 days. To delete it permanently, you must go to iCloud.com, open Recently Deleted, and delete it there. This also removes it from all your devices.

What is the difference between “Move to Trash� and “Delete Immediately�?

“Move to Trash� sends the file to the Trash, where you can recover it. “Delete Immediately� (Option-Command-Delete) bypasses the Trash and deletes the file right away, with a confirmation dialog.

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 →