Secure File Deletion Guidance Tool

Get OS-specific secure-erase commands for any file type — no file upload needed

Accepts a file or folder path (typed, never uploaded) and returns the correct secure-deletion command for macOS, Linux, and Windows, along with guidance on why SSD overwriting differs from HDD overwriting. Helps non-technical users securely delete sensitive files without guessing CLI syntax. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Does overwriting a file actually make it unrecoverable?

On a traditional spinning hard drive, overwriting the file's sectors with random data makes recovery impractical. On an SSD, wear-levelling and over-provisioning mean an overwrite may not touch the original physical cells, so full-disk encryption plus a secure erase or crypto-erase is the reliable approach.

Dragging a file to the Trash does not erase it — the bytes usually sit on disk until something else overwrites them, and forensic tools can recover them. Secure deletion overwrites the data (or, on SSDs, relies on encryption and crypto-erase) so it cannot be recovered. The catch is that the right command differs by operating system and by drive type, and the syntax is easy to get wrong. This tool builds the correct command for your situation from a path you type — nothing is uploaded, it is purely a command generator.

How it works

Secure deletion has two regimes:

  • Spinning hard drives (HDD) store data in fixed physical sectors. Overwriting the file’s sectors with random data reliably destroys the contents. Tools: shred and wipe on Linux, and historically srm on macOS.
  • Solid-state drives (SSD) use wear-levelling: the controller spreads writes across cells and keeps spare capacity, so an overwrite command may land on different cells than the original data. Per-file overwriting is therefore unreliable on SSDs. The dependable approach is full-disk encryption (FileVault, LUKS, BitLocker) plus a normal delete, or a whole-device secure/crypto-erase.

The tool maps your OS and drive type to the appropriate command:

Linux  HDD : shred -vfz -n 3 "<path>"      (3 passes, then zero, then remove)
Linux  SSD : rm -P "<path>" ; fstrim -v /   (delete then TRIM; rely on FDE)
macOS  HDD : rm -P "<path>"                 (overwrite-on-delete, older HW)
macOS  SSD : rm "<path>"  + FileVault note  (per-file overwrite unreliable)
Windows    : del "<path>" ; cipher /w:<drv> (delete then wipe free space)

Notes and warnings

Secure deletion is irreversible — double-check the path before running. On SSDs, the honest answer is that the single most effective control is having had full-disk encryption enabled the whole time; once the key is destroyed the data is gone regardless of cell state. For an entire SSD, the manufacturer’s ATA Secure Erase (or a crypto-erase) is better than any file-level command. This tool never reads or transmits your files; it only assembles the command text for you to run yourself.