Skip to main content
Data Center Exit
Hard drives with blank labels resting in a plastic tray, a ruled log sheet not yet filled in on the bench beside them

November 27, 2026 · 4 min

ATA Secure Erase: what the command does, and when a drive can be trusted with it

ATA Secure Erase asks the drive to wipe itself, hidden areas included. It is fast to launch and hard to check, so the drive model and the record matter as much as the command.

Overwriting a SATA drive from the host only reaches the sectors the operating system can address. Sectors the drive has retired, and on an SSD the spare flash it keeps for wear levelling, stay out of reach. ATA Secure Erase hands the job to the drive itself, which knows where its own data lives. At a data center exit with a few hundred SATA drives, that sounds like the obvious method. It is a good one on drives that implement it properly, and the difficulty is knowing which those are.

What the command is

Secure Erase belongs to the security feature set of the ATA standard, the command set SATA drives speak. The host sends a SECURITY ERASE UNIT command and the drive firmware carries out the erase internally. There are two modes, normal and enhanced. NIST SP 800-88 lists this command in its enhanced mode, where the drive supports it, among the purge methods for ATA hard drives. Which of the two a drive offers, and what it really does in each, depends on the firmware.

How it is run

The drive will only accept the erase after a security password has been set, and the password is cleared when the erase completes. Many systems put SATA drives in a frozen state at boot, which blocks security commands until the drive is reconnected or the machine is suspended and resumed. On Linux the usual tool is hdparm. Erasure software sold for this work runs the same commands and adds logging per drive, which is what an exit needs. The drive also reports an estimated duration, useful for planning a batch.

Hard drives and SSDs are not the same case

On a hard drive, the advantage is that the erase runs inside the drive, and the same NIST guidance prefers the newer Sanitize commands when the drive supports them. On an SSD, the command is interpreted by the controller, and implementations differ widely: some reset every flash block, some apply a cryptographic erase, some have been found in published research to leave data behind. For self encrypting drives, the logic is the one described in cryptographic erase, and its conditions apply.

Sanitize, its successor

Later versions of the ATA standard added a Sanitize feature set, with block erase, overwrite and crypto scramble options, designed to cover every storage area including caches. SAS and NVMe drives have their own equivalents and do not accept ATA commands at all. A register with mixed interfaces needs the method chosen per drive family. How the media sanitization guidelines match commands to media types is set out on the NIST 800-88 page; read the current text there rather than an older vendor summary.

Verifying the result

A completion status says the firmware believes it finished. It does not show what it did. Verification means reading back sample areas, and the full drive where time allows, to confirm no recognizable data remains. That check cannot see sectors the host cannot address, so on drives with a doubtful implementation the policy should require a second method. Drives that refuse the command, report errors or have failed go to physical destruction.

What the record should show

For each drive: serial number, model, firmware version, interface, the mode used, normal or enhanced, the completion status, the verification result, the date and the operator. Firmware version matters because the same model can behave differently across releases. A certificate built from those lines is the one an auditor can check; the contents are detailed on certificate of destruction.

When to choose it

Secure Erase suits drives you intend to resell or return at the end of a lease, where the drive has to stay usable, provided the model is known to implement the command correctly. For drives that will not be reused, or whose behaviour nobody can confirm, destruction removes the question. Sending your drive register through the project review passes it to a provider covering your area, who can say which models can be erased by command.

Check which drives can take a secure erase

Send the drive models and interfaces on your register. The call back sorts which drives can be erased by command, which need another method, and what each record should show.

After you send it: a call back, dialed by hand, to go through the scope with you. With your agreement, the scoped request then goes to a qualified provider covering your area.