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
Back up and sign out. Copy off anything you need, and sign out of or deauthorise any software tied to that PC.
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.
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.
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.
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.
Open Terminal (Admin) or Command Prompt as administrator and type diskpart.
Type list disk and find your SSD by its size. Double-check this step.
Type select disk X, replacing X with the SSD's number.
Type clean all and wait. It can take a long time on a large drive.
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.