How to Wipe a Hard Drive and Reinstall Windows

Wiping your hard drive and reinstalling Windows gives you a completely fresh start: every file, app, and setting is erased, and a clean copy of Windows goes on in their place. It’s the cure for stubborn malware, a cluttered system, or preparing a PC for a new owner. The process takes about an hour with a Windows USB installer. Here’s how to do it safely, plus a simpler alternative that doesn’t need a USB drive.

Quick answer

Back up your files, create a Windows 11 USB installer, boot the PC from it, and choose Custom: Install Windows only. At “Where do you want to install Windows?”, delete every partition on the drive, select the Unallocated Space, and select Next. Setup formats the drive and installs Windows.

Clean install or Reset this PC?

Reset this PC (Remove everything) Clean install from USB
Needs a USB drive No Yes, 8 GB or larger
Removes partitions and recovery tools No Yes, if you delete them
Best for Most users, selling a PC Badly damaged installs, new drives, removing maker bloatware completely

If you don’t need a fully blank disk, Reset this PC with Clean data turned on is easier and just as effective for most people.

Step 1: Back up and prepare

  • Copy your documents, photos, and other files to an external drive or cloud storage, and check that the copies open.
  • Save your BitLocker recovery key and any software license keys you’ll need.
  • Sign out of apps that limit installs, such as Adobe or iTunes.
  • Download your PC maker’s network driver to the USB drive if you’re worried about connecting after the install.

Step 2: Create a Windows USB installer

Use Microsoft’s Media Creation Tool on any working PC. See creating a bootable Windows 11 USB (or the Windows 10 version).

Step 3: Boot from the USB drive

Plug in the USB, restart, and press the boot menu key (often F12, F11, F8, or Esc). Choose the USB drive. When setup starts, pick your language and select Install now.

Step 4: Wipe the drive and install

  1. Choose I don’t have a product key if the PC was activated before; Windows reactivates with its digital license.
  2. Pick the same edition the PC was licensed for (Home or Pro).
  3. Choose Custom: Install Windows only (advanced).
  4. Select each partition on the drive you’re wiping (Drive 0) and choose Delete. Be careful not to delete partitions on other drives you want to keep.
  5. Select Drive 0 Unallocated Space and choose Next. Windows creates the partitions it needs and installs.
  6. Follow the setup screens when the PC restarts.

Erasing a drive before you sell it

Deleting partitions doesn’t overwrite data, so recovery tools could still find old files. Before selling or recycling a PC, do one of these: use Reset this PC with Clean data, use the SSD maker’s secure erase tool, or for a hard disk, run diskpart and the clean all command from setup’s command prompt (Shift+F10), which writes zeros to every sector and can take hours.

After reinstalling

  • Run Windows Update until no more updates appear.
  • Install drivers from your PC maker if any devices show warnings in Device Manager.
  • Restore your files and reinstall your apps.

Related: How to reinstall Windows 11.

Related: Wipe an SSD on Windows 10.

Frequently asked questions

Will I need a product key?

Usually not, if the PC was activated before and you install the same edition.

How long does it take?

About 30 to 60 minutes for the install, plus updates. A full clean all wipe adds hours.

Is this the same on Windows 10?

Yes, the steps match. See wiping Windows 10 and doing a clean install.