Quick answer:

  1. 1️⃣ Whole PC you plan to sell: Settings > System > Recovery > Reset PC > Remove everything, with Clean data turned on.
  2. 2️⃣ Second or external hard drive: open diskpart, select the disk, then run clean all.
  3. 3️⃣ Second drive that needs a record of the wipe: File Shredder erases the whole volume and saves a PDF certificate.
  4. 4️⃣ SSD: the drive maker's Secure Erase tool or Sanitize in BIOS, not a multi-pass overwrite.
File Shredder - Disk Wipe Software Screenshot.
️ Eugene - CEO at SoftOrbits, Candidate of Technical Sciences, has more than 16 years of expertise in software development, photo and multimedia applications, enhancing and transforming digital images and videos.
📅 Last updated on:  2026-10-29

Here is how to wipe a hard drive on a PC: check whether Windows starts from the disk, and whether it is a hard disk or an SSD (solid state drive). Task Manager shows the drive type under the Performance tab. The sections below give the exact menu or command for each case, followed by formatting, pass counts, timing and verification.

What you'll need
  • A Windows 11 or Windows 10 PC and an administrator account
  • A backup of anything you want to keep, stored on a different drive
  • For an SSD, the drive maker's utility or a BIOS with Secure Erase or Sanitize
  • Between one hour and a full night, depending on drive size and method

What you will learn
Apply in 15 min Saves 1 hMedium

How to wipe a hard drive in Windows 10 and 11 with Reset this PC

Open Recovery in Settings

On Windows 11, go to Settings > System > Recovery and choose Reset PC. On Windows 10, open Settings > Update & Security > Recovery and click Get started.

 Recovery page in Windows 11 Settings with the Reset PC button..

Choose Remove everything

Pick Remove everything, not Keep my files. Choose a cloud download or a local reinstall of Windows.

 Reset this PC dialog with the Remove everything option highlighted..

Turn on Clean data under Change settings

On the Additional settings screen, open Change settings and switch Clean data to Yes. A PC with a second internal drive also shows Delete files from all drives here.

 Choose settings screen in Reset this PC with the Clean data switch set to Yes..

Start the reset and keep the laptop on power

Click Next, then Reset. Plug a laptop into its charger first. A reset with Clean data can run for hours.

File Shredder - Disk Wipe Software File Shredder - Disk Wipe Software

Is Reset this PC with Clean data enough to wipe a laptop?

TL;DR

Reset this PC does a solid job when Clean data is on. Microsoft says the option "makes it harder for other people to recover files you've removed" and recommends it before you donate, recycle or sell a PC. Harder is not the same as impossible for a data-recovery lab.

Without Clean data, Reset deletes your files and reinstalls Windows on top. Older Windows 10 builds named the choices Just remove my files and Remove files and clean the drive; current Windows hides the second one behind Change settings from step 3. The Microsoft guide to resetting your PC says, "it removes files and cleans the drive."

Encryption changes the security of what stays on the disk. Backblaze says "the Reset function makes data recovery sufficiently difficult, especially if your data is encrypted." If BitLocker or device encryption was on from the day you set the laptop up, the old blocks left on the disk are ciphertext. If you never turned it on, Clean data does all the work.
For a home laptop going to a relative, Reset with Clean data is enough. For a work laptop that held client files on an SSD, add the drive maker's Secure Erase from the SSD section.

How to clear external hard drive or second internal disk with diskpart clean all

TL;DR

Run clean all in diskpart on the right disk number to clear hard drive data. Microsoft documents that it sets "each and every sector on the disk" to zero, which on a spinning hard disk will permanently remove the data. Plain clean without all only drops the partition table, and the files stay readable to recovery tools.

Open an admin Command Prompt. Right-click the Start button, choose Terminal (Admin) on Windows 11 or Windows PowerShell (Admin) on Windows 10, and type these lines one at a time:

diskpartlist diskselect disk 2detail disk
clean all

 diskpart list disk output in an admin Command Prompt showing three disks with sizes..

Replace 2 with your own disk number. The list disk output shows sizes, and detail disk prints the model name and volumes on the selected disk. The Microsoft Learn page for the clean command explains the difference between the two forms.

Diskpart does not ask "are you sure?" after clean all. If disk 1 and disk 2 are both 1 TB, unplug every other external drive first and match the model from detail disk. HP gives the same advice for any erase tool: verify the target drive before you start.

When diskpart says it succeeded, the drive is blank and unallocated. Open Disk Management, initialize it when Windows prompts you, then right-click the empty space and choose New Simple Volume.

Only need to scrub deleted files? Use cipher /w

If the drive stays in service and you only want deleted files gone, use the cipher /w command. It "removes data from available unused disk space on the entire volume." Type cipher /w:D:\ with your drive letter, and leave the window open until it finishes.

How to wipe a drive with a certificate in File Shredder

TL;DR

File Shredder - Disk Wipe Software erases a whole non-system volume, or only its free space, from inside Windows 11 or 10. It offers 16 methods, from a single pass of zeros to the 35-pass Gutmann pattern, shows the drive type before you start, and saves a PDF erasure certificate for an employer or a client.

Diskpart leaves no record of the wipe. File Shredder, a Windows program to wipe hard drive volumes, fits cases where somebody asks for proof, such as an office handing back leased laptops or a contractor returning a client's external drive. Volume wipes, free-space wipes and the certificate need a license; the one free run covers shredding files.

Open the Wipe drive / volume tile. The screen is titled Wipe drive / free space. Pick the disk under CHOOSE A DISK OR VOLUME, then choose Entire volume or Free space only. Pick a method under METHOD, tick I understand this erases everything on the selected volume, and press Erase entire volume. When the prompt shows the volume name, click Yes only if it is the drive you mean.

 File Shredder Wipe drive screen with an external USB drive selected and the Entire volume option..

Each row shows the drive type next to its size. On an SSD or a flash drive, the app warns that an overwrite may leave old data behind and points you to the maker's Secure Erase. During the run the volume is locked and dismounted. The partition stays in place, and its contents are overwritten.

diskpart clean all
  • Disk picked by number in a text window
  • One pass of zeros, no other choice
  • Nothing to file away afterwards
VS
File Shredder
  • Volumes listed by name, size and drive type
  • 16 methods, from Zeroes to Gutmann
  • Entire volume or free space only, plus a PDF certificate

16
wipe methods in File Shredder: quick Zeroes and Random passes plus 14 standards, from DoD 5220.22-M with 3 passes to Gutmann with 35

The PDF holds the method and pass count, the device serial and how the run ended. It is a report from our app about its own run, not an independent audit.

 File Shredder finished screen after erasing an external drive, with the result and the PDF certificate option..

Free and full version

Try the basic job once before you buy.

FeatureFreeOne run to try itFull versionAll methods, unlimited runs
Shred files and folders✓✓
Clean traces✓✓
Erase runs1Unlimited
Zeroes and Random, 1 pass✓✓
DoD, Gutmann, NIST and 11 other standards✗✓
Wipe free space✗✓
Erase entire volume✗✓
Remote Wipe via Telegram✗✓
PDF erasure certificate✗✓
With a license key, new jobs start on DoD 5220.22-M (3 passes). Settings lets you make any other method the default.
  Download 
  Buy now
From $ 19.99
  Buy now
From $ 19.99
  Download 

With a license key, new jobs start on DoD 5220.22-M (3 passes). Settings lets you make any other method the default.

File Shredder - Disk Wipe Software
File Shredder - Disk Wipe SoftwareErase a second or external drive from Windows and keep a PDF certificate of the wipe.

How to wipe SSD safely with Secure Erase or Sanitize

TL;DR

Use the drive maker's Secure Erase tool or the Secure Erase or Sanitize option in your BIOS or UEFI. NIST's current media sanitization guide says wear leveling and spare cells make it "infeasible for a user to sanitize all previous data" by overwriting through the normal read and write interface. Multi-pass overwrite tools mostly use up SSD write endurance.

The controller of a solid state drive spreads writes across cells to even out wear and keeps spare cells the operating system never sees. HP's guide to secure erase on SSDs names wear leveling and over-provisioning as reasons an overwrite may miss parts of the drive. The firmware command lets the drive erase its own cells, including spare ones.

Where Windows runs from decides how to wipe an SSD: run the maker's utility on a secondary SSD from Windows. For the boot SSD, look in BIOS or UEFI for Secure Erase or Sanitize; some boards have one. When neither exists, a Parted Magic or Linux live USB can send the ATA Secure Erase or NVMe Sanitize command, which is for confident users only.

MethodSpinning HDDSSD
Quick formatData stays recoverableNot a wipe
Full format or diskpart clean allZeros every sector; one pass is enoughSpare and remapped cells may keep old data
Reset this PC with Clean dataFine for resaleFine for resale, stronger if encryption was on from day one
DoD 3-pass or Gutmann 35-passWorks; NIST calls fixed pass counts obsoleteWears the drive for little gain
Maker Secure Erase or SanitizeNot needed, an overwrite already worksThe recommended route

Turning on BitLocker right before you sell an SSD does not cover what was already there. Wear leveling writes the new encrypted blocks to fresh cells and can leave the unencrypted copies behind. Encrypt when you set the drive up, and use Secure Erase when you retire it.

Does formatting a drive wipe it?

TL;DR

A quick format does not. Dell's erase guide warns it "is not the most secure way to delete your files because the data may still be recoverable with data recovery tools." A full format, with Quick Format unticked, writes zeros across the volume and works as a one-pass wipe on a hard disk.

A quick format builds a fresh, empty file table. The old files stay untouched until something new lands on top of them, which is why people manage to recover a formatted SD card or a USB stick after the wrong click.

The same deep scans that power micro SD card recovery software also read a quick-formatted hard disk.
To run a full format, open Disk Management, right-click the volume, choose Format, and untick Perform a quick format. It takes about as long as diskpart clean all. SSDs need the firmware route described earlier.

How many passes do you need to erase a hard drive?

TL;DR

One. NIST SP 800-88 Rev. 2, published in September 2025, says multi-pass overwrite "is not needed" and calls the DoD 5220.22-M language that mandates a set number of passes obsolete. On a spinning disk a single pass of zeros does it.

1 pass
is enough to clear a hard disk by overwriting, per the current NIST media sanitization guide, which dropped the multi-pass rule of DoD 5220.22-M
Source

The withdrawn Rev. 1 of the NIST guide said that one overwrite with a fixed pattern such as zeros "typically hinders recovery of data even if state of the art laboratory techniques are applied" on magnetic media.

Forum threads still ask for a DoD 5220.22-M wipe on an SSD, and the usual expert reply is that those schemes were designed for spinning platters.

File Shredder keeps DoD 5220.22-M and Gutmann in its method list because some company checklists still name them. If yours does not, pick Zeroes and save the hours.

How long does it take to clear a hard drive?

TL;DR

Plan for hours, not minutes. Users timing diskpart clean all report roughly an hour per 320 GB, between 3 and more than 10 hours for a 1 TB internal drive, and up to 14 hours for a 1 TB disk over USB. Reset this PC with Clean data can also run for hours.

~1 h per 320 GB
for diskpart clean all on a working internal hard drive, as timed by Windows forum users; USB-connected disks took several times longer

Diskpart shows no progress bar during a clean all drive wipe, so a long silent window is normal. One user saw 14 hours on a USB external and later timed 11 hours on that drive. The USB link and the disk set the pace.

Picture a 2 TB backup disk handed in at 6 p.m. on a Friday. It will not be ready before you leave. That is fine. Start it, keep the PC from sleeping and check in the morning.

How do you wipe the C: drive Windows runs from?

TL;DR

You cannot format or overwrite the drive Windows is running from while it is in use; Tech Advisor's wiping guide makes the same point. Use Reset this PC with Clean data, delete every partition during a clean install, or boot from separate media.

For a PC you keep, boot from a Windows installer USB. At Where do you want to install Windows?, delete every partition on the drive before you continue. That removes the old file system but does not overwrite the data, so it is fine for a fresh start. Before a sale it is not enough.

For a full overwrite of the boot disk, start from something else. On an HDD, DBAN on a USB stick still does the job, though Tech Advisor notes it cannot securely erase SSDs. On an SSD, use the BIOS option or a live USB described earlier. HP's other route is to connect the drive to a second PC as a secondary disk, where diskpart clean all works as described above.
Once the wipe tool has loaded from the USB stick, unplug the stick. Some boot tools list every connected disk, including the stick itself.

How do you know the wipe actually worked?

TL;DR

Read the tool's completion message, then check that Disk Management offers to initialize the drive as a blank disk. HP lists both checks, adds the maker's verification utilities for SSDs, and advises saving any report the tool produces. On an SSD, a clean read-back proves the visible blocks changed, not that every flash cell did.

For a hard disk, a blank, unallocated drive after clean all is a good sign, and a read-back pass is better. File Shredder's Verify after erasing option, available when you shred files, reads every byte back and reports how many items it confirmed. Volume and free-space wipes do not include this check. That count goes into the PDF certificate as well.

On SSD and flash media, the app warns that verification confirms only that the logical blocks hold the new pattern. Wear leveling may have moved the old cells out of reach.

How to wipe a hard drive on a PC before selling or recycling it

TL;DR

Back up, sign out of your accounts, then run Reset this PC with Clean data. For an SSD that held work or financial files, add the maker's Secure Erase. Another route is to keep the SSD and let the buyer fit their own.

Sign out of your Microsoft account and any paid apps that count activations or tie a license key to the PC before the reset, to ensure the next owner does not inherit your licenses and you do not lose a seat.

You can remove the SSD and sell the laptop without one or fit a cheap replacement so it still boots. Your data leaves with you.
USB sticks that move files between machines leak too. It is easier to password protect a USB drive when it is new than to clean it later.
For a stick that carries client files, USB drive encryption keeps a lost one from becoming a leak.

Which wipe method should you pick?

TL;DR

How to completely wipe a hard drive depends on where the disk sits and what type it is, so pick the simplest tool that covers it. Only one of the six cases below needs paid third party software.

  • Selling or donating the whole PC? Reset this PC with Clean data.
  • A second internal or USB hard drive, and nobody needs proof? Diskpart clean all.
  • Someone wants a record of the wipe? Use disk wipe software that saves a certificate.
  • An SSD that held sensitive files? The maker's Secure Erase or Sanitize in BIOS.
  • An old HDD in a PC that will not boot Windows? DBAN from a USB stick.
  • Only the leftovers of deleted files? cipher /w on that drive letter.

File Shredder - Disk Wipe Software File Shredder - Disk Wipe Software
Wipe hard drive data before you sell or recycle a PC. Reset this PC with Clean data, diskpart clean all, SSD Secure Erase and how long each one takes.
File Shredder - Disk Wipe Software Screenshot.


🙋Frequently Asked Questions

Yes. A full wipe overwrites every sector, so your files and partitions go along with the old Windows install. One pass of zeros does it on a spinning HDD; on an SSD, run Secure Erase so the spare cells are cleared as well.

Only a full format, and only on a hard disk. A quick format rebuilds the file table and leaves the data readable to recovery tools, which Dell flags as not a secure way to delete files.

With Clean data on, it overwrites the drive well enough for resale; Microsoft says it makes recovery harder. Without that option, Reset deletes files the quick way, and recovery software may bring many of them back.

Yes, with the drive's own Secure Erase or Sanitize command from the maker's utility or the BIOS. An overwrite from Windows reaches only the blocks the drive exposes, so copies in spare cells can survive.

It keeps your data safe, since the files leave with you. The buyer then needs a new drive and a fresh Windows install, which is why some sellers fit a cheap replacement SSD.

Not a household one. Erasing magnetic platters takes an industrial degausser, which also leaves the drive unusable. The flash memory in an SSD does not store data magnetically at all, so a magnet does nothing to it.

No. Wear leveling writes the new encrypted blocks to other cells and can leave the old unencrypted copies in place. Encrypt before data lands on the drive, and use Secure Erase when you retire it.

Pick the external disk on the Wipe drive screen. File Shredder takes any non-system volume that Windows has mounted, such as a second internal HDD, a USB external disk or a memory card. The drive Windows runs from is marked System; for that one, use Reset this PC with Clean data or boot media.

Sources