sodcalculator

10 Tech How-To

How to Wipe a Hard Drive in Windows 10

Guide 10-52829 · Updated · Step by step

Wiping a hard drive in Windows 10 completely erases all data, making it unrecoverable by standard means. This is essential before selling, donating, or recycling your PC, or when you want a truly clean install. You’ll need to back up any files you want to keep, and ensure your PC is plugged in (if it’s a laptop) to avoid interruption.

What You’ll Need

  • Backup of any important files (external drive, cloud storage, etc.)
  • Windows 10 installation media (USB or DVD) if you plan to reinstall Windows
  • Administrator access to your PC
  • Patience: the process can take from minutes to several hours depending on drive size and method

Step-by-Step

Method 1: Reset This PC (Built-in, for system drive)

  1. Open Settings (Windows key + I).
  2. Go to Update & Security → Recovery.
  3. Under Reset this PC, click Get started.
  4. Choose Remove everything.
  5. Select Change settings and turn on Data erasure (or “Clean the drive” – this overwrites the drive with zeros, making data recovery much harder). If you don’t see this option, your PC may not support it; use Method 2 instead.
  6. Click Next and then Reset. Windows will restart and begin the process. This can take over an hour.

Method 2: Clean Install with Installation Media (for system drive)

  1. Create Windows 10 installation media on a USB drive (at least 8GB) using Microsoft’s Media Creation Tool.
  2. Boot from the USB (change boot order in BIOS/UEFI if needed).
  3. When the Windows Setup screen appears, click Next → Install now.
  4. Accept the license terms, then choose Custom: Install Windows only (advanced).
  5. You’ll see a list of partitions. Select each partition on the drive you want to wipe (usually the largest ones), and click Delete. Confirm when prompted. Repeat for all partitions on that drive.
  6. After deleting all partitions, you’ll see Unallocated Space. Select it and click Next to let Windows create new partitions and install. This effectively wipes the drive.

Method 3: Diskpart Clean All (for any drive, including secondary)

  1. Open Command Prompt as Administrator (type “cmd” in Start, right-click, choose Run as administrator).
  2. Type diskpart and press Enter.
  3. Type list disk to see all disks. Note the disk number of the drive you want to wipe (check size to identify).
  4. Type select disk X (replace X with the correct number).
  5. Type clean all and press Enter. This writes zeros to every sector. It can take hours for large drives. When done, type exit.

Common Mistakes

  • Not backing up – the most common and costly error. Once wiped, data is gone forever.
  • Wiping the wrong drive – double-check the disk number in Diskpart; selecting the wrong disk will erase your OS or other data.
  • Choosing “Just remove my files” – this doesn’t securely erase data; it only makes it harder to access, but recovery tools can still retrieve it.
  • Interrupting the process – unplugging the PC or closing the laptop lid during wiping can corrupt the drive.
  • Not disabling BitLocker – if your drive is encrypted, you should decrypt it first (or have the recovery key) to avoid errors.

Tips

  • For maximum security, use clean all or the “Clean the drive” option. A single pass of zeros is generally enough for most users; multiple passes are unnecessary for modern drives.
  • If you’re selling the drive, consider physically destroying it if it contains extremely sensitive data (like financial records).
  • If you’re wiping a secondary drive (not the system drive), you can also use Disk Management to delete all volumes, then format it – but this doesn’t securely erase data.
  • For SSDs, use the manufacturer’s secure erase tool if available, as it’s faster and more effective than writing zeros.
  • After wiping, you can create a new partition and format it to use the drive again.

Troubleshooting

  • Reset fails or gets stuck: Restart your PC and try again. If it still fails, boot from installation media and use the “Custom” install method to delete partitions manually.
  • Diskpart says “Access denied” or “Disk is read-only”: Make sure you’re running Command Prompt as Administrator. Also, check if the disk has a write-protect switch (some external drives do).
  • “Clean all” takes too long: It’s normal for it to take hours on large drives. If it seems frozen, wait at least 30 minutes before assuming it’s stuck. You can also try the “clean” command (which only removes partitions, not secure erase) if you’re in a hurry.
  • Windows Setup doesn’t show the drive: You may need to load storage drivers (click “Load driver” during partition selection). Also, check if the drive is properly connected.
  • After wiping, the drive doesn’t show up: Open Disk Management (right-click Start → Disk Management), initialize the disk if prompted, and create a new volume.

Frequently Asked Questions

Does wiping a hard drive remove Windows?

Yes, wiping the system drive removes the operating system. After wiping, you’ll need to reinstall Windows (or another OS) to use the computer.

How long does it take to wipe a hard drive?

It depends on the method and drive size. “Reset This PC” with data erasure can take 1-3 hours. Diskpart “clean all” on a 1TB drive can take 4-6 hours or more. SSDs are faster than HDDs.

Can I recover data after wiping?

If you used a secure erase method (zeros overwrite), data recovery is virtually impossible with standard tools. If you only deleted files or formatted, recovery software might still find some data.

Will wiping damage my hard drive?

No, wiping is safe for both HDDs and SSDs. However, writing zeros to an SSD uses up its limited write cycles, but modern SSDs have plenty of endurance for a few wipes.

Can I wipe a hard drive without a Windows installation disc?

Yes, you can use “Reset This PC” if Windows is still bootable. If not, you can create installation media on another PC, or use third-party tools like DBAN (Darik’s Boot and Nuke) – but be careful with third-party tools.

What’s the difference between “Reset” and “Clean all”?

“Reset” reinstalls Windows and can optionally clean the drive. “Clean all” is a Diskpart command that only wipes the drive, leaving it unallocated. Both can securely erase data, but “Clean all” is more thorough and doesn’t reinstall Windows.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →