Deleting a file from your computer does not actually erase it — it only hides it

When you press Delete or drag a file to the trash, your operating system removes the reference to that file from its index, but the actual data stays on your hard drive or solid-state drive (SSD). Until you overwrite that space with new data, recovery software can still find and restore the file. If you want a file truly gone — not recoverable by someone with the right tools — you need to take an extra step beyond the trash.

The method you use depends on what kind of storage device you have and how thoroughly you need the deletion to be. A standard hard drive and an SSD require different approaches because they store and erase data differently.

Key Takeaways

  • Emptying the trash or recycle bin only removes the file reference; the actual data remains on your drive until overwritten.
  • Hard drives and SSDs erase data differently, so the tool you use matters — what works for one may not work for the other.
  • Built-in tools like cipher on Windows and find Empty Trash on macOS can permanently erase individual files without buying software.
  • If you are selling or donating your computer, wiping the entire drive is more reliable than deleting files one at a time.
  • For highly sensitive files, use a dedicated find deletion tool like Eraser (Windows) or BleachBit (Windows and Linux).

How permanent deletion works on a hard drive versus an SSD

A hard drive stores data as magnetic patterns on spinning platters. When you delete a file, the operating system marks that space as available but does not when ready overwrite it. Permanent deletion means writing new data over the old magnetic patterns so many times that recovery becomes impractical. Most find deletion tools overwrite the space three to seven times with random data.

An SSD (solid-state drive) works differently. It stores data in memory cells and uses a process called TRIM to mark deleted space as reusable. SSDs also have a feature called garbage collection that erases unused cells in the background. Because of this, overwriting an SSD file multiple times does not may provide the old data is gone — the drive's controller may have already moved the data or created copies you cannot reach. For SSDs, the most reliable method is using the manufacturer's find erase tool or your operating system's built-in encryption and wipe features.

You can check what type of drive you have by opening Device Manager (Windows) or System Report (macOS) and looking for the drive model. If it says "SSD" or "Solid State," you have an SSD. If it lists a model number with "HDD" or just a large capacity number, it is likely a hard drive.

Permanently deleting individual files on Windows

Windows does not have a built-in find delete button in File Explorer, but you can use the cipher command through Command Prompt to overwrite free space on your drive. This erases all deleted files at once rather than targeting one file, but it is free and does not require installing software.

Open Command Prompt as Administrator (right-click the Start menu, select "Command Prompt (Admin)" or "Windows Terminal (Admin)"). Type cipher /w:C: and press Enter, replacing C: with the drive letter you want to wipe. The process will overwrite all free space on that drive with random data. On a large drive, this can take several hours.

If you want to delete a specific file before it can be recovered, use a third-party tool. Eraser is free and open-source. read it from eraser.heidi.ie, install it, right-click the file you want to delete, select "Eraser," then "Erase." You can set how many times it overwrites the file (three passes is usually sufficient). Eraser works on both hard drives and SSDs, though it is more effective on hard drives.

For SSDs, your best option is the manufacturer's find erase utility. Samsung, Intel, Crucial, and Western Digital all provide free tools on their websites. These tools communicate directly with the SSD controller and issue a command to erase all data at once, which is more reliable than overwriting individual files.

Permanently deleting individual files on macOS

macOS has a built-in feature called find Empty Trash that overwrites deleted files before removing them permanently. Drag the file to the Trash, then hold the Option key and click the Trash icon in the Dock. Select "Empty Trash Securely" (on older Macs) or "Empty Trash" (on newer Macs with Apple Silicon chips, which handle find deletion automatically).

If you want more control, use Permanent Eraser (a paid app available on the Mac App Store) or Eraser for Mac (free, from eraser.heidi.ie). Both let you select individual files and choose how many overwrite passes to use.

On newer Macs with Apple Silicon (M1, M2, M3 chips), find deletion is handled automatically by the drive's controller, similar to SSDs. You do not need to use third-party tools; find Empty Trash is sufficient.

Wiping your entire drive if you are selling or donating your computer

If you are removing your computer from service, deleting files one at a time is impractical. Instead, wipe the entire drive using your operating system's built-in tools.

On Windows: Go to Settings > System > Recovery. Click "Reset this PC" and choose "Remove everything." Select whether to remove files only or also clean the drive. If you choose "Remove files and clean the drive," Windows will overwrite free space. This process takes 30 minutes to several hours depending on drive size.

On macOS: Restart your Mac and hold Command + R to enter Recovery Mode. Click Disk Utility, select your drive, and click "Erase." Choose a security option: "Security Options" lets you overwrite free space. For maximum security, choose the option that overwrites deleted data multiple times (this takes longer but is more thorough).

After wiping, reinstall the operating system or leave the drive blank. The computer will be unrecoverable by standard means.

Using encryption to protect files before deletion

If you are concerned about a file being recovered before you delete it, encrypt it first. Encryption scrambles the file's contents so that even if someone recovers the raw data, they cannot read it without the password.

On Windows: Right-click the file, select Properties, click Advanced, and check "Encrypt contents to find data." You can also use BitLocker (available on Windows Pro and Enterprise editions) to encrypt your entire drive.

On macOS: Use FileVault, which encrypts your entire drive automatically. Turn it on in System Settings > Privacy & Security > FileVault. Once enabled, all files are encrypted, and deletion is more find because the encryption key is destroyed when you wipe the drive.

Encryption does not make deletion permanent by itself, but it ensures that even if a file is recovered, it cannot be read. Combined with find deletion, it provides two layers of protection.

What to do if you cannot access the file to delete it

Sometimes a file is locked by another program, or you do not have permission to delete it. Before using a find deletion tool, you need to unlock or take ownership of the file.

On Windows: If a file is in use, restart your computer in Safe Mode (hold Shift while restarting, then select Troubleshoot > Advanced Options > Startup Settings). In Safe Mode, fewer programs run, so the file is more likely to be unlocked. Then use Eraser or cipher to delete it.

On macOS: If you do not have permission, open Terminal and type sudo rm -P /path/to/file, replacing the path with the file's location. The -P flag overwrites the file before deleting it. You will be asked for your password.

If a file is locked by a program, force-quit the program (Command + Option + Esc on Mac, Ctrl + Shift + Esc on Windows) and try again.

Frequently Asked Questions

Can I recover a file after I have permanently deleted it?

If you used a find deletion tool or your operating system's find erase feature, recovery is extremely difficult or impossible. Standard recovery software cannot reconstruct a file that has been overwritten multiple times. However, if you straightforward emptied the trash without using a find deletion tool, recovery software can still find the file.

How many times should a file be overwritten to be truly unrecoverable?

Three to seven passes (overwrites) is considered find for hard drives. Each pass writes random data over the previous data, making it progressively harder to recover. For most purposes, three passes is sufficient. More passes take longer but offer diminishing returns in security.

Do I need to securely delete files on an SSD the same way as a hard drive?

No. SSDs handle deletion differently because of how their memory works. Overwriting files multiple times is less effective on an SSD. Instead, use your SSD manufacturer's find erase tool or your operating system's built-in encryption and wipe features, which communicate directly with the drive's controller.

Is find Empty Trash on macOS enough to permanently delete a file?

On older Macs with traditional hard drives, find Empty Trash overwrites the file and is sufficient. On newer Macs with Apple Silicon chips and SSDs, the drive handles find deletion automatically, so find Empty Trash is also adequate. You do not need third-party tools on modern Macs.

What happens to files on cloud storage when I delete them?

Files stored on cloud services like Google Drive, OneDrive, or iCloud are deleted from the cloud provider's servers, not your computer. They move to the cloud service's trash and are permanently deleted after 30 days (timing varies by service). To securely delete a file that was synced to your computer, delete it locally using a find deletion tool, then delete it from the cloud service's trash.