Skip to content

How-ToSSD

How to Securely Erase an SSD Before Selling or Reusing It

Deleting files or quick-formatting an SSD doesn't properly wipe it. Before selling or reusing a spare drive, use your SSD maker's tool, such as Samsung Magician's Secure Erase or Crucial Storage Executive's Sanitize Drive, over a direct SATA or M.2 connection. If you're selling a whole PC, use Reset this PC with Remove everything and Clean data, and keep diskpart's clean all as a fallback for seco

By , Systems & Technical Editor

5 min read

How to Securely Erase an SSD Before Selling or Reusing It

It's based on Samsung, Crucial and Microsoft documentation, checked on 25 November 2026.

If you're upgrading and want to sell an old SSD, pass a PC on to family or reuse a drive in another build, you want your files gone for good first. Dragging files to the Recycle Bin or doing a quick format only removes the pointers to your data. The right way to wipe an SSD is to use the erase command built into the drive, or Windows' own drive-cleaning option, and this guide covers both.

Warning: every method here permanently destroys everything on the target drive. Back up anything you want to keep first; our best free backup software guide has options.

Why SSDs need a different approach

Old hard-drive wiping habits don't carry over neatly to SSDs. Micron, Crucial's parent company, makes the point on its storage blog that data sanitisation methods that were tried and trusted on hard drives were often very ineffective on SSDs, because what goes on behind the interface is so different. An SSD's controller decides where data physically lives, so the reliable way to clear the whole thing is to ask the controller itself to do it, using the drive maker's software.

Before you start

  1. Back up and sign out. Copy off anything you need, and sign out of or deauthorise any software tied to that PC.

  2. Check BitLocker or device encryption. If the drive is encrypted, make sure you have the recovery key saved in case you need to unlock it before wiping. Our guides on finding a BitLocker recovery key and BitLocker vs device encryption explain both.

  3. Identify the right drive. Note the model and capacity of the drive you're wiping, and if possible unplug other drives you care about. Choosing the wrong disk is the easiest way to lose data.

  4. Connect it properly. Crucial says full support for its Storage Executive features needs a direct SATA or PCIe connection, and USB connections may only allow partial functionality. Put the SSD in an M.2 slot or SATA port rather than a USB enclosure if you can.

Method 1: Use your SSD maker's tool (best for a spare drive)

Most SSD brands provide a free Windows toolbox with an erase option. Two common examples:

Samsung Magician: Secure Erase

Samsung's SSD support FAQ points to running Secure Erase in Samsung Magician, which only runs on Windows PCs. Samsung's Magician 9 installation guide lists supported models, including the 9100 PRO, 990 PRO, 990 EVO Plus and 870 EVO, and notes that:

  • Secure Erase may not work on systems where the BIOS issues a security freeze lock.

  • Its bootable Secure Erase solution may not work properly on some PCs because of compatibility issues, and you should close Device Manager while creating it.

If a SATA drive reports a "frozen state" in the bootable utility, Samsung's FAQ says to unplug the SSD's SATA power cable without turning the PC off, wait a few seconds, reconnect it and run Secure Erase again. Our Samsung Magician guide covers installing the app and its other features.

Crucial Storage Executive: Sanitize Drive

Crucial's Storage Executive has a Sanitize Drive function. Crucial says it removes all data, including partitions, leaves the drive needing to be initialised again before use, and forces a reboot to complete, so save your work first. On a password-protected TCG-enabled (hardware-encrypted) drive, Sanitize isn't available; instead, PSID Revert removes all data using the 32-character PSID printed on the drive's label.

Crucial also notes that erasing a drive leaves information stored in the controller, such as the firmware and SMART data, untouched. So a buyer can still see the drive's health and hours, which is normal.

Other brands

Check your drive maker's support site for its SSD utility. Look for options called Secure Erase, Sanitize or similar, and read the maker's notes on which models and connections are supported. Our best free SSD management software round-up covers several of these toolboxes.

Method 2: Reset this PC with Clean data (best when selling a whole PC)

If you're selling or giving away the whole computer, Windows can wipe and reinstall in one go. In Settings > System > Recovery, choose Reset PC, then Remove everything. Microsoft says this reinstalls Windows and removes all your personal files, apps and settings, and that it's ideal when you're giving away or selling your PC.

When Windows shows the reset options, turn on Clean data. Microsoft says this removes files and cleans the drive, and recommends it if you're planning to donate, recycle or sell your PC. It takes longer, but Microsoft says it makes it harder for other people to recover the files you've removed. The new owner gets a fresh copy of Windows. Our full Windows 11 reset guide walks through every screen.

Method 3: diskpart clean all (any brand, built into Windows)

For a secondary drive whose maker doesn't offer a tool, Windows' diskpart command can overwrite it. Microsoft's documentation says the plain clean command removes all partitions or volume formatting from the selected disk, while clean all sets every sector on the disk to zero, which completely deletes all data on it. Crucial also lists diskpart as a way to erase a drive and return it to an uninitialised state.

  1. Open Terminal (Admin) or Command Prompt as administrator and type diskpart.

  2. Type list disk and find your SSD by its size. Double-check this step.

  3. Type select disk X, replacing X with the SSD's number.

  4. Type clean all and wait. It can take a long time on a large drive.

  5. Type exit.

You can't use this on the drive Windows is running from; for that, use Method 2. clean all writes to the whole drive, so for a spare SSD that has a maker tool, Method 1 is the more SSD-friendly choice.

After the wipe

  • Reusing the drive? It will appear in Disk Management as uninitialised. Follow our new SSD setup guide to initialise and format it.

  • Moving to a new drive instead? Clone or back up first, then wipe the old one. See how to clone an SSD with free tools.

  • Slower than expected afterwards? Crucial says that if you see performance loss after erasing, let the drive sit idle for an extended period so its built-in garbage collection can catch up.

Our verdict

To wipe a spare SSD before selling or reusing it, use your drive maker's own tool, such as Samsung Magician's Secure Erase or Crucial Storage Executive's Sanitize Drive, with the drive connected directly over SATA or M.2. If you're selling the whole PC, use Reset this PC with Remove everything and Clean data turned on. Diskpart's clean all is a built-in fallback for secondary drives. Whatever you choose, back up first and triple-check you've picked the right disk.

The bottom line

To wipe a spare SSD before selling or reusing it, use your drive maker's own tool, such as Samsung Magician's Secure Erase or Crucial Storage Executive's Sanitize Drive, with the drive connected directly over SATA or M.2. If you're selling the whole PC, use Reset this PC with Remove everything and Clean data turned on. Diskpart's clean all is a built-in fallback for secondary drives. Whatever you choose, back up first and triple-check you've picked the right disk.

In this article

Sources

  1. 01Microsoft Support, Reset your PC
  2. 02Microsoft Learn, clean (diskpart)
  3. 03Samsung Semiconductor, Internal SSD troubleshooting FAQ
  4. 04Samsung Semiconductor, Samsung Magician 9 Installation Guide (PDF)
  5. 05Crucial, An overview of Crucial Storage Executive
  6. 06Crucial, How to erase an SSD
  7. 07Micron, The easy and fast way to securely remove all data from your SSD

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Fix a Slow NVMe SSD: Check the Link, Heat, TRIM and Firmware

How-To

How to Fix a Slow NVMe SSD: Check the Link, Heat, TRIM and Firmware

A slow NVMe SSD is usually healthy but held back. Check its PCIe link in CrystalDiskInfo and move it to a full-speed M.2 slot, then rule out overheating, a nearly full drive and its write cache, TRIM being off and old firmware before treating it as faulty.

Marcus Thorne5 min

RAID 0 vs RAID 1: Speed or Safety for Your PC's Drives?

Versus

RAID 0 vs RAID 1: Speed or Safety for Your PC's Drives?

RAID 0 stripes data across two or more drives for one larger volume that Intel calls the fastest RAID level, but one failed drive loses everything. RAID 1 mirrors two drives so your files survive a drive failure, at the cost of half the capacity. Neither replaces a backup.

Callum Reid5 min

Best NAS Hard Drive in 2026: 5 Drives for Home and Small-Office NAS

Best Picks

Best NAS Hard Drive in 2026: 5 Drives for Home and Small-Office NAS

The best NAS hard drives on official specs: WD Red Plus for most home NAS boxes (CMR, up to 8 bays, 180TB/year), Seagate IronWolf for health monitoring and data recovery cover, Toshiba N300 for up to 12 bays, WD Red Pro for heavy workloads, and Seagate IronWolf Pro for up to 32TB.

Hannah Vance6 min