Dwight Pavlovic | October 19, 2026

How to Securely Erase an SSD: Complete Step-by-Step Guide

How to Securely Erase an SSD: Complete Step-by-Step Guide

Whether you are selling a laptop, recycling an old PC, or reusing a drive in a new build, deleting files is not enough to protect your data. On a solid-state drive (SSD), deleted files and even a quick format can leave data recoverable. A secure erase uses commands built into the drive itself to wipe every storage cell, including areas Windows cannot reach.

Quick answer: The most reliable way to securely erase an SSD is to use a firmware-level command, not a file-overwriting tool. On many HP business PCs, use HP Secure Erase in the BIOS (Security > Hard Drive Utilities > Secure Erase). Otherwise, use your SSD maker's free tool (such as Samsung Magician or SanDisk Dashboard) or, as a fallback, Windows 11 Reset this PC with Remove everything and Clean data turned on. Back up everything first, because a secure erase cannot be undone.

This guide explains why SSDs need a different approach than hard drives, walks through each erase method step by step, and covers how to confirm the job is done.

Why Securely Erasing an SSD Is Different from an HDD

Traditional hard disk drives (HDDs) store data on spinning platters, so overwriting every sector with zeros reliably replaces old data. SSDs store data in flash memory managed by a controller, and that controller decides where data physically lands. If you are new to the technology, our guide What is an SSD? covers the basics.

Flash memory architecture

SSDs write data in pages and erase it in larger blocks. When you "delete" a file, the drive usually marks the space as unused rather than clearing it right away. Until the controller cleans up that block, the old data can still exist on the chips.

Wear leveling

To make the drive last longer, the controller spreads writes evenly across all memory cells. That means a program that overwrites a file may write to a different physical location, leaving the original data untouched. A proper secure erase has to account for every cell, not just the addresses Windows can see.

Over-provisioning and spare blocks

Most SSDs reserve hidden capacity for performance and to replace worn cells. Neither Windows nor overwrite software can access this space, but data can end up there. Firmware erase commands, such as ATA Secure Erase, NVMe Sanitize, or a cryptographic erase, can reach it.

Encryption changes the picture

Many SSDs encrypt everything they store with an internal key, and many Windows 11 PCs also use BitLocker or device encryption. A cryptographic erase destroys that key, which makes all existing data unreadable in seconds. This is why some secure erase operations finish almost instantly.

Secure Erase Methods Compared

Method

How it works

Best for

Limitations

HP Secure Erase (BIOS)

Firmware-level erase from the PC's BIOS, with an optional NIST verification report

HP business PCs, including the boot drive

Available on select HP models; check your BIOS

SSD manufacturer tool

Sends the drive's own secure erase, sanitize, or PSID revert command

Secondary or external drives, upgrades and DIY builds

Usually cannot erase the drive Windows is running from

Windows 11 Reset this PC with Clean data

Reinstalls Windows and overwrites the free space

Quick resale prep when no firmware tool is available

Does not reach over-provisioned space

Diskpart "clean all"

Writes zeros to every visible sector

Last resort for secondary drives

Slow, adds wear, misses hidden areas

Bootable third-party tools

Issue firmware erase commands from outside Windows

Drives without a maker tool, or locked drives

Some are paid; the drive may need to be "unfrozen"

Before You Start: Preparation Checklist

  1. Back up your data. A secure erase is permanent. Copy files to an external drive or cloud storage, and confirm the backup opens. Moving to a new PC? See how to transfer files from PC to PC.

  2. Save your BitLocker recovery key if encryption is on, in case you need to access the drive before erasing it.

  3. Identify the drive. Note the SSD brand, model, and serial number in Device Manager or your maker's tool, so you know which utility to use and which drive you are erasing.

  4. Sign out of accounts and deauthorize software if you are selling or giving away the PC.

  5. Connect to power. Plug in your laptop and turn off sleep, since interrupting an erase can leave the drive locked or unusable.

  6. Disconnect other drives you do not intend to erase, especially external backups.

Method 1: Use HP Secure Erase in the BIOS

If you have an HP business laptop or desktop, the simplest option is built into the PC. HP Secure Erase uses hardware-based methods to wipe a selected hard drive or SSD, and it can erase the drive Windows normally boots from. HP extended the feature to G9 and newer business PCs with HP Commercial BIOS, including many HP EliteBook laptops and other business models from 2022 onward. Newer BIOS versions let you choose between Clear and Purge levels and generate a NIST 800-88 completion report.

  1. Update your BIOS from HP Support so you have the latest Secure Erase options.

  2. Turn on or restart the computer and press F10 repeatedly to open BIOS Setup.

  3. Select Security, then Hard Drive Utilities (or Hard Drive Tools).

  4. Select Secure Erase, then choose the drive to erase.

  5. If offered, choose the erase level and whether to verify for NIST compliance. Verification takes longer but produces a completion record you can save to a USB drive.

  6. Follow the on-screen prompts and leave the PC plugged in until the process finishes.

For full details, see the HP Support article HP Business PCs: Using HP Secure Erase. If you do not see the option, your model may not support it. Use one of the methods below instead.

Method 2: Use Your SSD Manufacturer's Tool

Most SSD makers offer free software that sends the drive's own erase command. These tools generally require that the SSD is not your active boot drive and has no partitions, so they work best for secondary drives, drives in a USB enclosure or dock, or a drive you removed during an upgrade. Some can create a bootable USB to erase a system drive.

General steps:

  1. Download the tool only from the manufacturer's official site and install it.

  2. Remove any partitions from the target SSD if the tool requires it.

  3. Select the drive, then choose Secure Erase, Sanitize, or a similar option.

  4. If the tool reports the drive as "frozen," put the PC to sleep and wake it, or use the tool's bootable USB option.

  5. Confirm the warning and wait until the tool reports success.

Tip: When a tool offers both Secure Erase and Sanitize, Sanitize is usually the more thorough choice because it clears every block that has been written to, not just the mapping table.

Method 3: Use Windows 11 Built-In Options

If you cannot run a firmware erase, Windows offers two options. Neither one reaches the SSD's hidden spare areas, so treat them as a good baseline for personal resale rather than a guaranteed sanitization. Windows 10 reached end of support on October 14, 2025, so the steps below are for Windows 11.

Reset this PC with Clean data

  1. Open Settings > System > Recovery.

  2. Next to Reset this PC, select Reset PC.

  3. Choose Remove everything.

  4. Choose Cloud download or Local reinstall.

  5. Select Change settings and turn on Clean data (and Delete files from all drives if you want to wipe every internal drive).

  6. Select Confirm, then Next and Reset.

Cleaning the drive adds significant time, but it makes deleted files much harder to recover. Microsoft's guide to resetting your PC covers each option. For a full walkthrough, see how to factory reset a Windows laptop.

Diskpart "clean all" (secondary drives only)

This command writes zeros to every visible sector of a drive. It is slow, adds wear to the SSD, and does not reach over-provisioned space, so use it only when no firmware option exists.

  1. Open Command Prompt as an administrator.

  2. Type diskpart and press Enter.

  3. Type list disk and note the number of the drive you want to erase.

  4. Type select disk X, replacing X with that number. Double-check it, since choosing the wrong disk erases the wrong drive.

  5. Type clean all and press Enter. Wait for the confirmation message.

Method 4: Use a Bootable Third-Party Tool

Bootable utilities run outside Windows, which lets them send firmware erase commands to drives Windows blocks or reports as frozen. Options include Parted Magic (paid, with Secure Erase and NVMe Sanitize) and AOMEI Partition Assistant (its SSD Secure Erase feature is in paid editions). Choose a tool that issues the drive's built-in erase or sanitize command. Avoid tools that only overwrite free space or use multi-pass "shredding," since those methods were designed for hard drives and add wear without reaching an SSD's hidden areas.

How to Confirm the Erase Worked

  • Check the tool's report. HP Secure Erase with verification and most manufacturer tools display or save a completion status.

  • Look in Disk Management. A fully erased secondary drive typically appears as unallocated space with no partitions.

  • Run a recovery scan (optional). A free file recovery app should find no recoverable files.

  • Check drive health. Open your maker's tool to confirm the drive reports a healthy status before you reuse it. Our guide on how to check hard drive health explains what to look for.

  • Keep a record of the drive serial number, date, and method if you need proof for work or compliance.

Security and Compliance Considerations

Businesses that handle regulated data often follow NIST SP 800-88, Guidelines for Media Sanitization. NIST published Revision 2 in September 2025, which shifts the focus to building a complete sanitization program rather than prescribing one technique per device. The guidelines describe three levels:

  • Clear: Protects against simple, non-invasive recovery. A Windows overwrite falls in this category.

  • Purge: Protects against advanced lab recovery. Firmware commands such as Sanitize, block erase, and cryptographic erase are purge methods.

  • Destroy: Physically shreds or disintegrates the drive. Use it for failed SSDs that cannot run an erase command, or when policy requires it.

Check with your IT or compliance team before erasing company devices, since they may require a specific tool or a certificate of sanitization.

Frequently Asked Questions

Is formatting an SSD the same as securely erasing it?

No. A quick format only removes the file system's record of your files, and the data can often be recovered. A secure erase uses the drive's firmware to clear or cryptographically destroy all stored data.

Can I recover data after a secure erase?

No. A completed secure erase, sanitize, or cryptographic erase is permanent. Make sure your backup works before you start.

Can I securely erase the SSD my computer boots from?

Not from inside Windows. Use HP Secure Erase in the BIOS if your HP PC supports it, a bootable USB created by your SSD maker's tool, or Windows Reset this PC with Clean data turned on.

Does a secure erase reduce SSD lifespan?

Barely. A single secure erase typically uses at most one write cycle, and a cryptographic erase may use none. Repeated full overwrites with tools like diskpart add more wear than a firmware erase.

How long does it take to securely erase an SSD?

A cryptographic erase can finish in seconds, while a full sanitize can take a few minutes to longer depending on drive size. Windows Clean data and diskpart "clean all" can take hours on large drives.

Can I secure erase an encrypted SSD?

Yes. On a self-encrypting drive, a secure erase or PSID revert replaces the encryption key, which makes the old data unreadable. If the drive is locked by an unknown password, use PSID Revert with the code printed on the drive label.

Why does my tool say the drive is "frozen"?

Many PCs set SATA SSDs to a frozen security state at startup to block erase commands. Putting the PC to sleep and waking it, or booting from the manufacturer's USB tool, usually clears it.

What if the secure erase fails?

Update the SSD firmware and your PC's BIOS, connect the drive directly rather than through a USB adapter, and try again. If the drive still fails or is damaged, physical destruction through a certified recycler is the safest option.

Conclusion

Securely erasing an SSD comes down to using the drive's own firmware commands instead of relying on deletion or formatting. Back up your files first, then use HP Secure Erase on a supported HP PC or your SSD maker's tool, and fall back to Windows Reset this PC with Clean data only when those options are not available. Confirm the result before you reuse, sell, or recycle the drive. If you are passing on the whole computer, our checklist on what to do before selling or recycling your old laptop covers the remaining steps, and when you are ready for an upgrade, you can browse current HP laptops.

About the Author

Dwight Pavlovic is a contributing writer for HP® Tech Takes. Dwight is a music and technology writer based out of West Virginia.

Disclosure: