Skip to main content
Guide

How to wipe an SSD before selling it

By the RebootSemi inspection team · Updated · 7 min read

An SSD does not erase the way a hard drive does. Deleting files, formatting the drive or running an overwrite tool can all leave data behind that a determined buyer could recover. What works is the erase command built into the drive itself, and there are four easy ways to run it.

Why deleting and formatting are not enough

An SSD spreads writes across all of its flash to even out wear, and it keeps spare flash that the computer never sees. When you delete a file or quick-format the drive, the data usually stays where it was until the drive gets round to clearing it. Overwrite tools written for hard drives, such as DBAN, write to the addresses the computer can see, but the drive decides where those writes land, so old copies in spare or remapped flash can survive.

The drive’s own erase command — Secure Erase on a SATA drive, Format or Sanitize on an NVMe drive — is carried out by the drive’s controller across all of its flash, spare areas included. On most drives it takes seconds to a few minutes. Every method below runs that command in one form or another.

1. The drive maker’s Secure Erase

The easiest route on Windows. Install your drive maker’s free utility and look for Secure Erase or Sanitize:

  • Samsung: Samsung Magician
  • Crucial: Crucial Storage Executive
  • WD and SanDisk: WD Dashboard
  • Kingston: Kingston SSD Manager
  • Intel and Solidigm: Solidigm Storage Tool
  • SK hynix: SK hynix Drive Manager

A tool cannot erase the drive Windows is running from, and a SATA drive is often “frozen” against erasing while the computer is on. For either case the utility usually offers to make a bootable USB stick that runs the erase outside Windows; follow its prompts. Erasing a second drive is normally a single click.

2. Secure Erase in the BIOS

Many desktop motherboards and most business laptops can erase a drive from the firmware setup screen, with nothing to install. Restart, enter setup (usually Delete, F2 or F10 as the computer starts) and look for an option named Secure Erase, Data Wipe or Secure Wipe, often under a Tools, Maintenance or Security menu. Dell, HP and Lenovo business machines all have one. It erases the whole drive, operating system included, so do it last.

3. Windows reset, for the system drive

If you are selling the whole computer, or putting the drive back in a machine you are keeping, the Windows reset with cleaning switched on is a reasonable choice for a home sale:

  1. Windows 11: Settings → System → Recovery → Reset PC. Windows 10: Settings → Update & Security → Recovery → Get started.
  2. Choose Remove everything, then under Additional settings choose Change settings and switch Clean data to Yes.
  3. When it reaches the first setup screen, shut it down.

This overwrites the free space rather than running the drive’s own erase, so a maker’s Secure Erase is the more thorough option when the drive is leaving you on its own. Our guide to wiping a whole PC covers signing out of accounts and the other steps around it.

4. Linux, for NVMe and SATA drives

From a Linux live USB you can send the erase command yourself. Check the device name twice with lsblk first — these commands erase the drive you name, immediately and permanently.

  • NVMe: with the nvme-cli package, nvme format /dev/nvme0n1 --ses=1 runs a user-data erase. Where the drive supports it, nvme sanitize /dev/nvme0 -a 2 runs a block-erase sanitize, which also clears caches and spare flash; nvme sanitize-log /dev/nvme0 shows when it has finished.
  • SATA: with hdparm, confirm with hdparm -I /dev/sdX that the drive shows “not frozen” (suspending and waking the computer often unfreezes it), then set a temporary password and erase: hdparm --user-master u --security-set-pass p /dev/sdX followed by hdparm --user-master u --security-erase p /dev/sdX.

If the drive was encrypted

A drive that was protected by BitLocker, Device encryption or another full-disk encryption for its whole life holds nothing readable without its key, and erasing it destroys the key. It still costs nothing to run a Secure Erase as well. Turning encryption on only now helps less than it sounds: unless you choose to encrypt the entire drive, space that held deleted files is not encrypted.

If the drive has failed

A drive that will not show up cannot be erased by any of these methods. A failed drive gets no offer from RebootSemi; sent in the same box as other parts, it is recycled. Removing your data is your responsibility, so if a failed drive holds data you need to protect, keep it rather than send it.

Next: see how worn your drive is, or find out whether it is NVMe or SATA.

Keep reading

More guides

How much is my gaming PC worth?

Which parts carry the value, which carry none, and today's offers on fifteen example builds.

Should you sell a gaming PC whole or part it out?

Parting out grosses more and nets less than people expect. How to do the sum for your own machine.

How to wipe a gaming PC before selling it

Back up, sign out, reset Windows the right way, and the second drive most people forget.

How to check your SSD's health

Health percentage, data written and rated TBW — where to find each and what the numbers mean.

NVMe or SATA: how to tell which SSD you have

The label, the notches in the connector, and where your computer tells you outright.

How much is my graphics card worth?

The three things that set a GPU's value, and today's offers for the cards people sell most.

How to test a GPU before selling it

Half an hour of free tools proves the card works — and catches problems before a buyer does.

How to pack a graphics card for shipping

Anti-static bag, two inches of padding, and nothing loose — the way cards arrive intact.

When to sell your graphics card

Why launch timing matters for a used card's value, and how to time an upgrade.

How much is my CPU worth?

Why the letters after the number matter, and today's offers for the chips people sell most.

Which processor do I have?

Where your computer names the chip, and how to read the model number once you have it.

How to test a CPU before selling it

Half an hour with free tools shows the chip is stable — and catches problems before a buyer does.

How to remove and pack a CPU

Warm it up, twist the cooler off, clean the paste, and ship it in a clamshell.

Should I sell my mining rig?

The Merge, what the cards are worth now, and the questions that settle it.

Should you sell a mining rig whole or part it out?

A working rig pays more than its parts with us. When parting out still makes sense.

How to test ex-mining GPUs before selling them

Undo the mining tweaks first, then the checks that matter most for mined cards.

How to ship a mining rig or a stack of GPUs

Cards out of the frame, one bag each, packed tight — and a pallet past a few boxes.

How much is my RAM worth?

Generation, capacity and type set the price — and today's offers for common sizes.

What RAM do I have?

Where your computer lists its memory, and how to read the label on the stick.

DDR4 or DDR5: how to tell which RAM you have

The label code, the notch position and the platform all give it away.

How to test RAM before selling it

Stock settings, a proper memory test, and one stick at a time if anything fails.

How to find your graphics card's exact model

Task Manager, GPU-Z, the box and the sticker — and which part of the name sets the price.

Founders Edition vs partner cards: does it change the price?

What a Founders Edition or a premium partner card is, and why the offer is the GPU's.

How to tell if a GPU was used for mining

A modified BIOS, worn fans and hot memory — and what they mean for the card's value.

Selling an EVGA graphics card

EVGA left the GPU business in 2022 — what that means for selling one, with today's offers.

How much is used server RAM worth?

Generation, size and speed set it — with live DDR5 and DDR4 server RAM offers.

How to read Samsung, SK hynix and Micron server RAM labels

The PC4/PC5 code, the rank line, and what each maker's part number means.

Which servers use DDR5 RDIMM?

The Xeon and EPYC platforms, the servers built on them, and how to spot an RDIMM.

Need more help?

Have a question that wasn’t covered above? Send us an email and we’ll get back to you within one business day — often much sooner.

Contact Us