To wipe your hard drive and reinstall Windows, you use the built-in “Reset this PC” feature or a Windows installation USB drive, both of which erase your files and install a fresh copy of the operating system. This guide walks you through both methods, including how to back up your data, create installation media, and handle common problems.
Why You Might Need a Clean Install
Wiping your drive and reinstalling Windows is the most thorough way to fix deep software problems. It removes viruses that resist antivirus tools, clears corrupted system files, and gets rid of years of accumulated junk that slows a PC down. It is also the correct step before selling or giving away a computer, because it ensures your personal files, passwords, and browsing history are gone. A clean install is different from a “reset” that keeps your files—that option only refreshes system files and leaves your documents, photos, and installed apps in place.
Before You Start: Back Up Everything
Wiping the drive deletes every file on it, so a backup is non-negotiable. Copy important documents, photos, videos, and any files you want to keep to an external drive, a USB stick, or a cloud service. Do not forget browser bookmarks, email archives, and saved game files. Also, make a list of the software you use and find your license keys or login credentials for paid apps. If you are reinstalling because of a malware infection, scan the backup files with a different, trusted device before restoring them, or you may re-infect the new system.
Method 1: Reset This PC (Windows 10 and 11)
The easiest way to wipe and reinstall is through the Settings app. This method works for most people and does not require a USB drive.
- Open Settings (press Windows + I).
- Go to Update & Security (Windows 10) or System (Windows 11), then click Recovery.
- Under “Reset this PC,” click Get started.
- Choose Remove everything.
- Select Change settings and turn on Clean data? (this overwrites the drive, making files harder to recover). Also turn on Delete files from all drives if you have multiple drives and want them all wiped.
- Click Next, then Reset. The PC will restart and reinstall Windows automatically.
If your PC cannot boot into Windows, you can still access this feature by booting into the recovery environment. Restart the PC and press the recovery key (often F11 or F12 during startup) or hold Shift while clicking Restart from the login screen. Then go to Troubleshoot > Reset this PC.
Method 2: Clean Install from a USB Drive
A USB installation gives you a completely fresh copy of Windows and is the best option if the current system is too damaged to reset. You will need a USB drive with at least 8 GB of space and another working computer to create the installer.
- On the working computer, go to the official Microsoft software download page and download the Media Creation Tool.
- Run the tool, accept the license, and choose Create installation media (USB flash drive).
- Select your language and edition, then choose the USB drive you want to use. The tool will format the drive and copy the Windows installation files to it.
- Plug the USB into the PC you want to wipe, then restart it. You may need to press a key (like F12, Esc, or F2) to open the boot menu and select the USB drive.
- When the Windows Setup screen appears, choose your language and click Next, then Install now.
- When asked for a product key, you can click I don’t have a product key if you are reinstalling on a PC that already had a licensed copy of Windows (it will activate automatically later).
- Select Custom: Install Windows only (advanced).
- You will see a list of partitions on your drive. To wipe everything, select each partition and click Delete until only “Unallocated Space” remains. Then select that space and click Next. Windows will create the necessary partitions and install itself.
This method completely erases the drive, including all recovery partitions, so make sure you have backed up anything you need.
What Happens to Your Data? Can It Be Recovered?
When you delete files normally, they are not physically erased—the space is marked as available, and the data can be recovered with special software. The “Clean data?” option in Reset this PC and the partition deletion in a USB install both overwrite the drive with zeros or random data, making recovery very difficult. However, for absolute security—especially if the drive is an SSD—use a dedicated drive-erasing tool that overwrites the entire drive multiple times, or physically destroy the drive if it contains highly sensitive information. SSDs are harder to wipe securely than traditional hard drives because of how they manage data, so a simple format is not enough for sensitive data.
Common Problems and How to Fix Them
Several issues can arise during a wipe and reinstall. Here are the most common ones and their solutions:
- “Windows cannot be installed on this drive” – This usually means the drive is using a different partition style (GPT vs. MBR) than the firmware expects. In the USB installer, press Shift + F10 to open Command Prompt, type
diskpart, thenlist disk,select disk 0, andclean. Then close Command Prompt and try installing again. - PC does not boot from the USB – Enter the BIOS/UEFI settings (usually by pressing F2 or Del during startup) and enable “Boot from USB” or change the boot order. Also, make sure the USB is formatted as FAT32 (the Media Creation Tool does this automatically).
- Windows activation fails – If you are reinstalling the same edition on the same hardware, it should activate automatically. If not, go to Settings > Update & Security > Activation and click Troubleshoot. If you changed the motherboard, you may need to contact Microsoft support.
- The reset gets stuck at a percentage – Wait at least an hour; it can take a while. If it is truly stuck, force a shutdown by holding the power button, then restart and try again. If it still fails, use the USB method.
After the Reinstall: What to Do Next
Once Windows is installed, the first thing is to connect to the internet and run Windows Update several times to install drivers and security patches. Then go to the manufacturer’s support website (Dell, HP, Lenovo, etc.) and download the latest drivers for your model, especially chipset, graphics, and network drivers. After that, reinstall your software and restore your backed-up files. Finally, create a recovery drive or note your product key in a safe place, so you can do this again if needed.
Frequently Asked Questions
Do I need a product key to reinstall Windows?
No, if you are reinstalling on the same PC that already had a licensed copy of Windows. The activation is tied to your hardware (specifically the motherboard). During installation, skip the key prompt, and Windows will activate automatically once it connects to the internet. If you built a new PC or replaced the motherboard, you will need a new key.
Will resetting my PC remove viruses?
Yes, a full reset with “Remove everything” will remove most malware, including rootkits, because it replaces the entire operating system. However, some extremely sophisticated malware can survive in the firmware or on the recovery partition. If you suspect this, use a USB install and delete all partitions, which also removes the recovery partition.
How long does it take to wipe and reinstall Windows?
Typically 30 minutes to 2 hours, depending on the speed of your drive and PC. The “Clean data?” option takes longer because it overwrites the entire drive. The USB install itself takes about 20-30 minutes after you start it, but creating the USB and backing up files adds time.
Can I wipe my hard drive without a USB or recovery disk?
Yes, the Reset this PC feature works without any external media, as long as the recovery files are still on the system. If those files are corrupted, you will need a USB installer. You can also use the Command Prompt from the recovery environment to run diskpart and clean the drive, but then you have no operating system left.
Is it better to reset or do a clean install from USB?
For most people, Reset this PC is simpler and faster. A clean install from USB is more thorough because it deletes all partitions, including the recovery partition, which can sometimes carry malware. If you are selling the PC, use the USB method to ensure all data is gone. If you just want a fresh system, the reset is fine.
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
- How to Cool Down an Overheating Laptop
- Good Password: How to Create One
- Remove Write Protection on External Hard Drive
- How to Disable Chkdsk at Windows Startup
- Restore WiFi and Secure Your Netgear Router After Reset
- Fix Error 0x80004005: Top Easy Ways That Work