How to Securely Erase an Enterprise SSD: NVMe Sanitize, SAS, SATA and NIST 800-88 Rev. 2
By the SSDtrader Team · Updated 10 November 2026 · How-to guides
The short answer: Do not wipe an SSD by overwriting it with zeros or random data. Wear levelling and spare blocks mean an overwrite cannot reach every cell. Use the drive's built-in sanitize commands instead: NVMe Sanitize (block erase or crypto erase) or NVMe Format with Secure Erase for NVMe drives, SCSI SANITIZE for SAS drives and ATA Sanitize / Secure Erase for SATA drives. Under NIST SP 800-88 Revision 2 (September 2025), these count as Purge methods, which NIST says should be preferred over Clear. Technique details now come from IEEE 2883. Verify the result and keep a certificate per serial number.
Disclosure: SSDtrader resells used enterprise drives and sanitizes them before sale. This article explains standard commands and published guidance. It is not legal or compliance advice; follow your organisation's data-handling policy and any regulator requirements.
Every enterprise SSD that leaves a data centre carries a question: is the old data really gone? Getting this wrong is expensive. Regulators fine companies over data found on discarded drives, and buyers of used hardware increasingly ask for erasure certificates before they pay.
The good news is that modern SSDs can erase themselves quickly and thoroughly, often in seconds, using commands built into their firmware. The bad news is that the most familiar method, writing zeros over the whole drive, is the wrong one for flash. This guide explains why, which commands to use for NVMe, SAS and SATA drives, how to verify the result and what changed with NIST SP 800-88 Revision 2.
Why does overwriting not work on SSDs?
A hard drive writes data to fixed physical locations, so overwriting a sector replaces what was there. An SSD does not. Its flash translation layer maps logical addresses to physical pages and spreads writes across the drive to even out wear. When you "overwrite" block 1000, the SSD writes new data to a fresh page and marks the old one stale. The old page keeps its contents until garbage collection erases it.
Enterprise SSDs also hold a large pool of spare and over-provisioned NAND that the host cannot address. A 3.84TB drive may contain well over 4TB of raw flash. An overwrite from the host never touches that reserve, and retired bad blocks can still hold readable fragments. Only the drive's controller can reach every cell, which is why the sanitize commands live in firmware.
What do Clear, Purge and Destroy mean in NIST SP 800-88?
NIST SP 800-88 is the most widely cited media-sanitization guideline. Revision 2, published in September 2025, replaced the 2014 Revision 1. It kept the three categories:
- Clear — protects against recovery using normal host commands, for example a logical overwrite of all user-addressable space.
- Purge — protects against recovery even with state-of-the-art laboratory techniques, while leaving the media reusable. For SSDs, this means firmware-level block erase, crypto erase or sanitize overwrite.
- Destroy — makes the media unusable and recovery infeasible, for example shredding or disintegration.
Revision 2 changed the approach in two important ways. First, it removed the per-media technique tables and points to IEEE 2883 (the storage industry's sanitization standard) and NSA policy for specific techniques. Second, it states that Purge should be used instead of Clear where possible. For anyone reselling or redeploying drives, Purge is the practical target: the data is gone and the drive keeps its value.
Which sanitize method should you use for each drive type?
| Interface | Preferred (Purge) | Also available | Avoid |
|---|---|---|---|
| NVMe | Sanitize: Block Erase or Crypto Erase | Format NVM with Secure Erase Setting 1 (user data) or 2 (crypto) | Host overwrite with dd/shred |
| SAS | SCSI SANITIZE: Block Erase or Cryptographic Erase | SANITIZE Overwrite; FORMAT UNIT | Host overwrite only |
| SATA | ATA SANITIZE: Block Erase or Crypto Scramble | ATA SECURITY ERASE UNIT (enhanced) | Host overwrite only |
| Self-encrypting (SED) | Crypto erase via TCG Opal/Enterprise, or PSID revert | Combine with block erase for defence in depth | Relying on a locked drive being "safe" |
Block erase applies an erase pulse to every NAND block, including spare and retired blocks. Crypto erase replaces the drive's internal media encryption key. Data encrypted with the old key becomes unreadable, and it completes in seconds. Almost every modern enterprise SSD encrypts data internally even when it is not marketed as SED, which is why crypto erase is widely supported.
How do you sanitize an NVMe SSD on Linux?
First check what the drive supports. The sanicap field in the identify output shows which sanitize actions are available:
sudo nvme id-ctrl /dev/nvme0 -H | grep -i -A4 sanicap
Then start a sanitize. Action 2 is block erase; action 4 is crypto erase:
# Block erase (all user data, spare and retired blocks)
sudo nvme sanitize /dev/nvme0 --sanact=2
# Crypto erase
sudo nvme sanitize /dev/nvme0 --sanact=4
# Monitor progress until it reports completion
sudo nvme sanitize-log /dev/nvme0
Sanitize runs in the background on the drive and continues across a power cycle. The drive rejects normal I/O until it finishes. Block erase on a large drive can take minutes; crypto erase is usually near-instant.
If sanitize is not supported, use Format with a secure-erase setting. This applies to the whole namespace:
# --ses=1 user data erase, --ses=2 cryptographic erase
sudo nvme format /dev/nvme0n1 --ses=1
Format also lets you change the LBA format (512 or 4096-byte sectors) at the same time with --lbaf.
How do you sanitize a SAS SSD?
On Linux, the sg3_utils package provides sg_sanitize:
# Check supported options first
sudo sg_opcodes /dev/sdb | grep -i sanitize
# Block erase
sudo sg_sanitize --block --wait /dev/sdb
# Cryptographic erase
sudo sg_sanitize --crypto --wait /dev/sdb
If the drive is behind a RAID controller, either switch the controller to HBA/JBOD mode or use the controller's own secure-erase function. Dell iDRAC and Lifecycle Controller offer System Erase, which can sanitize supported SAS, SATA and NVMe drives without booting an OS. HPE iLO 5/6 offers One-button Secure Erase.
How do you sanitize a SATA SSD?
Use hdparm. Many BIOSes "freeze" the security feature set at boot, so you may need to hot-plug the drive or suspend and resume the system first.
# Check state: look for "not frozen" and supported sanitize features
sudo hdparm -I /dev/sdc | grep -i -E "frozen|sanitize|erase"
# Preferred: ATA sanitize block erase
sudo hdparm --sanitize-block-erase /dev/sdc
# Fallback: enhanced security erase (set a temporary password first)
sudo hdparm --user-master u --security-set-pass tmp /dev/sdc
sudo hdparm --user-master u --security-erase-enhanced tmp /dev/sdc
What about self-encrypting drives (SED)?
SED drives use TCG Opal or TCG Enterprise. If you control the keys, a crypto erase through your key manager or sedutil-cli is the cleanest Purge. If the drive is locked with unknown credentials, for example from a decommissioned array, use a PSID revert. The PSID is a 32-character code printed on the drive label. Reverting with it resets the drive to factory state and destroys the encryption key:
sudo sedutil-cli --yesIreallywanttoERASEALLmydatausingthePSID /dev/sdX
Arrays such as Dell PowerStore, Unity and NetApp often lock drives with SED keys. Drives removed from them are unusable until reverted.
How do you verify the drive is clean?
- Check the completion status in
nvme sanitize-log,sg_requestsor hdparm output. - Sample read the beginning, middle and end of the drive. After block erase, reads typically return all zeros or all ones. After crypto erase, they return random-looking data or zeros, depending on the drive.
- Re-read SMART to confirm the drive is healthy after the operation. Record percentage used and power-on hours.
- Record the result: serial number, model, method, tool and version, date, operator and verification result. This is your certificate of sanitization.
Commercial erasure tools automate these steps and produce tamper-evident reports. For small batches, the open-source commands above plus a spreadsheet log meet many internal policies.
When should you destroy instead?
- The drive has failed and no longer accepts commands, so you cannot sanitize it.
- Your policy requires physical destruction for highly sensitive data leaving your control.
- The sanitize command reports an error or verification fails.
SSDs must be shredded to a small particle size to destroy every NAND package. Degaussing does nothing to flash memory. NIST Revision 2 also downgraded degaussing for modern magnetic media.
How SSDtrader handles data on drives we buy and sell
Every used or refurbished drive we sell is sanitized with the drive's firmware method, checked for health and graded before listing (see how we read SSD health). If you are selling surplus drives to us, we can sanitize on receipt and provide a per-serial report, or you can sanitize before shipping and send us your log. For buying, browse all enterprise SSDs or send a list through the quote form.
Questions buyers ask
Is a quick format enough to erase an SSD?
No. A quick format only rewrites file-system structures. TRIM may make some data unreadable from the host, but it is not a sanitization method and gives no assurance.
How long does an NVMe sanitize take?
Crypto erase usually completes in seconds. Block erase typically takes from under a minute to several minutes, depending on capacity and controller. Overwrite sanitize can take hours.
Does secure erase wear out the SSD?
A single block erase uses one program/erase cycle per block, which is negligible against the thousands of cycles enterprise NAND is rated for.
Is crypto erase alone acceptable?
NIST SP 800-88 Rev. 2 treats cryptographic erase as a Purge technique when the implementation is trustworthy. Many organisations combine crypto erase with block erase for extra assurance.
What is IEEE 2883?
IEEE 2883-2022 is the storage industry standard for sanitization techniques by media and interface. NIST SP 800-88 Rev. 2 points to it for technique selection.
Can I sanitize a drive that is behind a PERC or Smart Array controller?
Yes, through the controller (Dell System Erase, HPE One-button Secure Erase) or by switching the controller to HBA mode and running the commands from the OS.
Related guides
- How to check enterprise SSD health
- How to buy refurbished enterprise SSDs safely
- SAS vs NVMe SSD
- Enterprise SSD vs consumer SSD