How to Securely Erase an SSD (Formatting Is Not Enough)
How to securely erase an SSD: why formatting and DoD overwrites fail on flash, and how ATA Sanitize, NVMe Sanitize and crypto erase actually work.
If you securely erase an SSD the way you were taught to erase a hard drive, you will probably leave data behind. Formatting, file deletion and multi-pass overwrite tools were all designed for magnetic media, where the operating system can address every sector directly. On flash, that assumption is false — and every reliable SSD sanitization method follows from understanding why.
Why SSDs are different
A hard drive maps logical block addresses (LBAs) to physical sectors more or less one-to-one. Write to LBA 1000 and the same patch of platter is rewritten. An SSD does nothing of the sort. Between the host and the NAND sits the flash translation layer (FTL), a firmware-managed mapping that redirects every write:
- Wear leveling. NAND cells tolerate a limited number of program/erase cycles, so the controller spreads writes across the whole flash array. Overwriting LBA 1000 writes the new data to a fresh physical page and marks the old page as stale — it does not touch the original cells.
- Over-provisioning. Consumer SSDs reserve roughly 7% of raw NAND beyond the advertised capacity; enterprise drives often reserve 25% or more. This spare area holds remapped blocks, garbage-collection workspace and stale copies of user data. No host-issued read or write can address it.
- Bad-block remapping. When a block degrades, the controller retires it with its contents intact. Retired blocks are invisible to the host but perfectly readable to anyone who desolders the chips and reads the NAND directly (a chip-off attack).
The consequence: any tool that works by writing patterns through the normal I/O path can only reach the LBAs the FTL chooses to expose at that moment. Stale pages, over-provisioned space and retired blocks keep their contents.
Why formatting and file deletion fail
File deletion removes a directory entry and marks blocks as free. The data itself stays until garbage collection eventually recycles the pages — on its own schedule, with no guarantee and no completion signal.
Quick format rewrites filesystem metadata only. Practically all user data survives and is trivially recoverable with free tools.
Full format (on Windows since Vista) writes zeros across the volume. On an SSD this is better than nothing but still insufficient: the zeros pass through the FTL like any other write, so stale copies in over-provisioned and remapped areas survive. It also erases only the formatted volume, not the whole device — host protected areas and unpartitioned space are untouched.
What about TRIM? TRIM tells the controller which LBAs no longer hold valid data, and most controllers will eventually erase them. But TRIM is advisory: behaviour is only deterministic on drives reporting “read zero after TRIM” (RZAT), and even then the guarantee covers what the host reads back, not what remains in NAND. TRIM improves hygiene; it is not sanitization.
This is the short answer to the “SSD secure erase vs format” question: a format changes what the drive shows you; a firmware-level sanitize command changes what the drive contains.
The correct mechanisms, in order of preference
All defensible SSD erasure runs inside the drive itself, through commands defined in the ATA and NVMe specifications, because only the firmware can reach over-provisioned space and remapped blocks. In NIST SP 800-88 Rev. 1 terms, these are Purge-level techniques; IEEE 2883-2022 defines the modern equivalents per interface. (For a broader map of the standards, see erasure standards explained.)
1. ATA Sanitize (SATA SSDs)
The Sanitize feature set (ACS-3 and later) is the preferred mechanism for SATA drives. Two variants matter for flash:
- Block Erase resets every NAND block to the erased state — user area, over-provisioning, remapped blocks.
- Crypto Scramble destroys the internal media encryption key on drives that encrypt transparently, rendering all ciphertext unreadable in seconds.
Sanitize is deliberately unstoppable: once started it survives power loss and resumes until complete, and the drive reports a verifiable completion status. That state machine is exactly what an auditor wants to see.
2. NVMe Format and Sanitize (NVMe SSDs)
NVMe offers two paths. Format NVM with the Secure Erase Settings field set to User Data Erase or Cryptographic Erase is widely supported and fast. The dedicated Sanitize command (NVMe 1.3 onward) — Block Erase, Crypto Erase or Overwrite — is stronger for the same reason ATA Sanitize is: mandatory completion semantics, power-loss resilience and status reporting. Prefer Sanitize where the drive implements it; fall back to Format NVM with user-data erase where it does not.
3. ATA Secure Erase (legacy)
SECURITY ERASE UNIT, part of the ATA Security feature set, predates Sanitize and remains the only firmware erase on many older SATA drives. It works — the enhanced variant is specified to cover reallocated sectors — but implementations vary in quality, the command can be interrupted by power loss without resuming, and the surrounding password mechanics cause the practical headaches described below. Treat it as the fallback when Sanitize is absent, not the default.
4. Cryptographic Erase on self-encrypting drives
Self-encrypting drives (SEDs, typically TCG Opal) encrypt everything with an internal data encryption key from the first write. A crypto erase (Opal Revert, ATA Crypto Scramble or NVMe Crypto Erase) replaces that key, turning the entire NAND contents into ciphertext with no key — effectively instant sanitization, even on multi-terabyte drives.
The precondition is absolute: every byte you care about must have been encrypted from the day it was written. Hardware SEDs satisfy this by design. But if you are relying on software full-disk encryption enabled at some point after deployment, plaintext written before that day may still sit in stale pages that key destruction does nothing to. NIST SP 800-88 makes the same reservation — cryptographic erase is only valid when encryption was in force for the data’s entire lifetime and the key was never exposed.
Why multi-pass overwriting is obsolete on flash
DoD 5220.22-M-style three- or seven-pass overwrites were engineered against magnetic remanence on 1990s hard drives. On an SSD they are worse than pointless: every pass is redirected by the FTL, so the over-provisioned area is never reached no matter how many passes you run, while the drive burns through program/erase cycles for nothing. NIST SP 800-88 superseded the DoD pattern in 2006. If a contract still demands it, run the pattern and a firmware-level purge — the pattern alone does not sanitize flash.
Method comparison
| Method | Sanitizes an SSD? | Standard reference |
|---|---|---|
| File deletion / emptying trash | No — metadata only | — |
| Quick format | No — metadata only | — |
| Full format (zero-fill) | No — cannot reach over-provisioned or remapped NAND | — |
| Multi-pass overwrite | No — FTL redirects every pass | DoD 5220.22-M (superseded 2006) |
| TRIM / discard | No — advisory, non-deterministic | ATA/NVMe data set management |
| ATA Secure Erase (enhanced) | Yes, with caveats — legacy, uneven implementations | ATA Security feature set; NIST SP 800-88 Purge |
| ATA Sanitize (Block Erase / Crypto Scramble) | Yes — preferred for SATA | ACS-3+; NIST SP 800-88 Purge; IEEE 2883-2022 |
| NVMe Format NVM (user data / crypto erase) | Yes | NVMe spec; NIST SP 800-88 Purge |
| NVMe Sanitize | Yes — preferred for NVMe | NVMe 1.3+; NIST SP 800-88 Purge; IEEE 2883-2022 |
| Cryptographic Erase (SED / TCG Opal) | Yes — if encrypted from first write | NIST SP 800-88 Purge (CE); IEEE 2883-2022 |
| Physical destruction (shred / disintegrate) | Yes — destroys asset value | NIST SP 800-88 Destroy |
Verify, don’t trust
A sanitize command returning success is a firmware claim, not evidence. Controllers have shipped with broken Secure Erase implementations; some drives acknowledge commands they silently skip. NIST SP 800-88 requires verification as part of the sanitization process for good reason.
Practical verification means reading back the addressable space after erasure — either in full or by statistically meaningful sampling across the LBA range — and confirming that no residual user data patterns remain. Sampling cannot read the over-provisioned area (nothing host-side can), which is why the strongest evidence comes from destructive lab testing: in an independent validation by the data-recovery lab Attingo, 32 NAND chips were physically removed from drives after Securaze erasure and read directly — zero data was recoverable. That chip-off result is the ground truth that host-side sampling approximates.
For high-assurance workflows, verification by a separate tool on a separate boot removes the conflict of interest of software grading its own work — the role Securaze WorkVerifier plays as an independent post-erasure check.
Pitfalls practitioners actually hit
- Security freeze lock. Most BIOSes issue
SECURITY FREEZE LOCKat POST to stop malware from setting ATA passwords — which also blocks Secure Erase. The classic workarounds are a hot-plug of the SATA cable or a sleep/wake cycle to re-enumerate the drive unfrozen. Some firmware freezes the Sanitize feature set too. - Stuck security passwords. ATA Secure Erase requires setting a drive password first; a power cut mid-procedure can leave the drive locked. Know the master-password recovery path before you start.
- USB and RAID controllers in the way. USB-to-SATA/NVMe bridges frequently refuse to pass Security and Sanitize commands through their SCSI translation layer; the same applies to drives behind RAID HBAs or Intel VMD. Erase drives on a native controller, or use tooling that drives the bridge correctly.
- Capability lies. Drives occasionally advertise a command they execute incorrectly — another argument for read-back verification and, at fleet scale, for tooling that picks the best supported method per drive: Securaze Work selects among 40+ erasure methods (NVMe Sanitize, ATA Sanitize/Secure Erase, cryptographic erase) per device and verifies the result.
The certificate is the deliverable
For GDPR accountability, NIS2 obligations or a customer audit, “we ran a tool” is not evidence. NIST SP 800-88 expects sanitization to be documented: device identifiers, method used, verification performed, operator, date. In practice the deliverable is a tamper-proof erasure certificate per drive — signed, machine-verifiable and retained for the audit horizon.
This is where process quality becomes measurable. Securaze issues signed, tamper-proof certificates (PDF and machine-readable exports) from the Dashboard for every successful erasure, generated by an erasure engine that is Common Criteria EAL2+ certified — recognized across 31 CCRA member nations — and ADISA Product Claims Test certified. Details on both are on the certifications page.
Where Securaze fits
Everything above works manually with hdparm, nvme-cli and patience — for one drive. At ITAD or enterprise scale you need automatic method selection per drive, freeze-lock handling, verification and signed certificates without operator judgement calls, which is what Securaze Work provides for PCs, Macs and servers, licensed per successful erasure. If a drive fails to erase, it costs nothing.