Use this when disposing of drives so data cannot be recovered.
Secure Erase
Secure erase permanently destroys data on a drive at end of life, using the drive's sanitize or crypto erase command (nvme format -s, hdparm secure erase) or physical destruction, since deleting files is not enough.
1. Secure erase destroys data before reuse or disposal.
2. SSDs: use crypto erase/secure erase, not overwrite.
3. HDDs: overwrite or degauss/shred.
4. Document with certificates.
5. Follow NIST 800-88.
media end of life → sanitise → verify → dispose
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verifying erasure Verify boundary
- Record the method, device serial number, date and operator.
- For drives leaving the organisation, get a certificate of sanitisation (vendor or tool).
- Sample-check erased drives (read the first and random sectors).
- For SEDs, verify crypto erase completed using the vendor tool or
nvme sanitize-log.
Step 2 Common mistakes Narrow the fault
- Using overwrite tools on SSDs (use the drive's sanitize/secure-erase or crypto-erase).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Deleting files is not erasing.
- Use sanitize or crypto erase commands.
- Physically destroy when required.
nvme format /dev/nvme0n1 --ses=1— NVMe secure erase (user data)hdparm --security-erase / blkdiscard -s— ATA/discard securesedutil-cli --revertTPer— SED crypto erase
ReferenceHow it works1 section · depth on demand
Methods per media (NIST SP 800-88)
| Media | Clear | Purge |
|---|---|---|
| HDD | Overwrite once | Degauss or ATA Secure Erase |
| SATA SSD | — | ATA Sanitize (block erase / crypto erase) |
| NVMe | — | nvme format --ses=2 or nvme sanitize (crypto) |
| Encrypted volume | — | Destroy the key |
| Any | — | Physical destruction (shred) when required |
Record serial numbers and get certificates of destruction from vendors.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Secure erase sanitises media before reuse or disposal. NIST SP 800-88 defines Clear (overwrite, protects against simple recovery), Purge (protects against lab recovery: crypto erase, block erase) and Destroy (shred, degauss, incinerate).
| Media | Purge method |
|---|---|
| HDD | ATA/SCSI sanitize overwrite, or degauss |
| SATA SSD | ATA SECURITY ERASE / SANITIZE BLOCK ERASE, crypto erase on SEDs |
| NVMe | nvme format --ses=2 (crypto) or nvme sanitize --sanact=2 |
| Self-encrypting drive | Revert/crypto erase (destroys the media key) |
nvme sanitize /dev/nvme0 --sanact=2; nvme sanitize-log /dev/nvme0
hdparm --user-master u --security-set-pass p /dev/sdX; hdparm --security-erase p /dev/sdX
Overwriting an SSD with dd is not reliable — spare and remapped blocks keep old data. Record serial number, method and result as evidence.
ReferenceConfiguration & state1 section · depth on demand
Commands
nvme format /dev/nvme0n1 --ses=1 # user data erase (ses=2: crypto erase)
nvme sanitize /dev/nvme0n1 --sanact=2 # block erase sanitize
hdparm --user-master u --security-set-pass p /dev/sdb ; hdparm --user-master u --security-erase p /dev/sdb
blkdiscard /dev/sdb # TRIM all (not a verified erase)
Documented example, not captured output. These commands destroy all data — double-check the device.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Data Protection → Secure Erase. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%