Selling a laptop, recovering from a nasty malware infection, or just fed up with years of software junk piling up? Knowing how to properly wipe a Windows PC is one of those skills that saves you a lot of grief. Get it wrong and you either leave personal data sitting there for the next owner to find, or you spend an afternoon clicking through the wrong menus wondering why nothing looks any different. This guide covers every method, from the quick built-in reset to a proper sector-level wipe with DiskPart, so you can pick the right one for your situation.
Why You Might Need to Wipe a Windows PC
The most common reason we see in remote support is selling or gifting a device. People hand over a laptop with every password, browser history, and personal photo still on it, and the buyer gets far more than they paid for. A basic delete or even a quick format does not cut it. Files deleted through Windows Explorer are not gone. They are just marked as available space, and any half-decent recovery tool will pull them back in minutes.
Malware is the other big one. Some infections, particularly rootkits and certain trojans, embed themselves deep enough that antivirus software cannot fully clean them. At that point, the only reliable fix is to wipe Windows PC storage completely and reinstall from scratch. If you have been dealing with something persistent that keeps coming back, our malware removal guide is a good first check, but if the infection has compromised system files, a full wipe is often the faster route.
Performance is another driver. A PC that has had software installed, removed, and reinstalled over several years accumulates a surprising amount of junk: orphaned registry entries, leftover service processes, conflicting drivers. Sometimes a fresh start genuinely is the quickest fix. And occasionally people just want to upgrade to a clean Windows 11 installation without carrying over years of accumulated settings from Windows 10.
Here is the thing: the method you choose matters a lot depending on your reason. Wiping for performance just needs a standard reset. Wiping before disposal needs the secure erase option. Wiping because of malware might need a full clean install from external media to avoid using potentially compromised recovery files. Each situation has the right tool, and using the wrong one wastes time or leaves you exposed.
Wipe Windows PC: Quick Fix with Reset this PC
This is the right starting point for most people. It takes about 15 to 30 minutes (longer if you pick the clean the drive option, which you should for any device leaving your hands), and you do not need any external tools or USB drives. The whole thing runs from within Windows itself.
Reset this PC with Remove Everything Easy
- Open Settings
PressWindows + Ito open Settings. On Windows 11, go to System then Recovery. On Windows 10, go to Update and Security then Recovery. - Click Reset this PC
Under Recovery options, click the Reset PC button. A window will appear asking what you want to keep. - Choose Remove everything
Select Remove everything. This deletes all personal files, installed apps, and settings. Do not choose Keep my files if you want a proper wipe. - Select Cloud download
When asked how to reinstall Windows, choose Cloud download. This pulls a fresh image directly from Microsoft. It uses around 4GB of data but is the safer choice, especially if your system files might be damaged. - Enable clean the drive
On the next screen, look for an option about data removal or additional settings. Select the option to clean the drive. This overwrites the data rather than just marking it deleted, which makes recovery much harder. It adds time but is non-negotiable before selling. - Confirm and start
Review the summary screen, plug the PC into power (laptops especially), and click Reset. The PC will restart and run through the process automatically. Do not turn it off mid-way.
One thing people miss: by default, Reset this PC only targets the system drive (usually C:). If you have a second internal drive with personal files on it, those are not touched unless you specifically see and select an option to clean all drives. Check this before handing the device over. If you only see the option for the system drive and you have a secondary drive, you will need to wipe that separately using Disk Management or DiskPart.
Microsoft's own documentation on resetting your PC covers the process in detail if you want the official walkthrough alongside this one.
More Ways to Wipe a Windows PC: Intermediate Options
Sometimes the standard reset does not work. Maybe Windows is too corrupted to get into Settings, or the reset process itself fails partway through. Maybe you want the extra confidence of booting into the Windows Recovery Environment rather than running the reset from within a potentially compromised OS. These options cover those situations.
Reset from Windows Recovery Environment (WinRE) Medium
- Boot into WinRE
Hold Shift and click Restart from the Start menu or the login screen. Alternatively, if Windows will not load, power the PC off and on three times in a row during the boot logo. Windows will automatically enter recovery mode after repeated failed boots. - Navigate to Reset this PC
From the blue recovery screen, go to Troubleshoot then Reset this PC. - Choose Remove everything
Select Remove everything, then pick Cloud download or Local reinstall. Cloud download is preferable here since you are already in recovery and local files may be dodgy. - Enable clean the drive and confirm
Select the clean the drive option when offered, confirm, and let the process run. WinRE handles the rest without needing Windows to be fully functional.
Clean Install from Windows USB Media Medium
- Create installation media
On another PC, download the Windows 11 Media Creation Tool from Microsoft and create a bootable USB drive (8GB minimum). - Boot from USB
Plug the USB into the target PC, restart, and enter the boot menu (usually F12, F11, or Esc depending on the manufacturer). Select the USB drive. - Delete existing partitions during setup
When you reach the disk selection screen during Windows setup, click each existing partition on the system drive and delete it. You will be left with unallocated space. Install Windows to that unallocated space. This is a proper clean install with no leftover recovery partition data. - Complete setup
Follow the on-screen prompts to finish installing Windows. The result is a completely fresh system with no trace of the previous installation.
The clean install from USB is particularly good if you are dealing with a machine that has been badly infected. Running the reset from within Windows, or even from WinRE, still uses components that live on the same drive. Booting from external media means you are starting from a completely separate, known-good source. HowToGeek have a solid explainer on why a full reinstall beats trying to clean an infected PC, and it is worth a read if you are on the fence.
If the infection turned out to be ransomware rather than a standard virus, the approach changes slightly. See our ransomware removal guide for the specific steps, since paying or not paying affects what you do with the drive before wiping.
Advanced: Secure Erase with DiskPart Before Disposal
Reset this PC with clean the drive is good enough for most situations. But if you want the closest thing to a proper secure erase using only tools built into Windows, DiskPart's clean all command is what you want. It overwrites every sector on the selected disk, not just the ones marked as used. For HDDs this is very effective. For SSDs, the result depends partly on the SSD controller and wear-levelling behaviour, but it still makes recovery significantly harder than a standard wipe.
This is the method to use when you are disposing of a drive, selling a PC to someone you do not know, or handing equipment back to an employer. It takes longer, sometimes much longer on large HDDs (a 2TB spinning disk can take several hours), but the thoroughness is the point.
DiskPart clean all: Full Sector Wipe Advanced
- Boot from Windows installation media
Use the USB you created in Solution 3. Boot from it and when the Windows setup screen appears, pressShift + F10(orShift + Fn + F10on some laptops) to open a Command Prompt window. - Open DiskPart
Typediskpartand press Enter. Then typelist diskand press Enter. You will see a numbered list of all connected disks. Note the sizes carefully to identify which disk is which. - Select the correct disk
Typeselect disk Xwhere X is the number of the disk you want to wipe. The prompt will confirm which disk is now selected. Double-check this. Selecting the wrong disk and running clean all on it is not recoverable. - Run clean all
Typeclean alland press Enter. The command will start overwriting every sector. For SSDs this might take 20 to 40 minutes. For large HDDs, budget several hours. Do not close the window or power off the machine. - Repeat for additional drives if needed
If the PC has a second internal drive, typelist diskagain, select the other disk number, and runclean allagain. - Continue with Windows installation
Typeexitto leave DiskPart, then close the Command Prompt and continue with the Windows setup if you are reinstalling. At the disk selection screen, the drive will show as unallocated space ready for a fresh install.
For non-system drives (a secondary HDD or SSD that Windows is not installed on), you can run DiskPart from within Windows without needing a USB. Search for cmd, right-click Command Prompt, choose Run as administrator, then follow the same diskpart, list disk, select disk X, clean all sequence. The Microsoft documentation for DiskPart commands covers every available option if you need to go further.
One thing that catches people out: after clean all, the drive has no partition table and no file system. If you want to reuse it rather than reinstall Windows to it, you will need to open Disk Management (right-click the Start button, choose Disk Management), right-click the unallocated space, create a new simple volume, and format it. Windows will then be able to use it normally.
Preventing the Need to Wipe Windows PC in a Hurry
Most emergency wipes happen because something was not caught early enough. A malware infection that could have been removed at the browser-redirect stage turns into a rootkit situation three weeks later because the antivirus was out of date or ignored. Keeping Windows Defender updated and running regular scans costs nothing and catches the majority of threats before they dig in. If you want third-party coverage, check the independent test results at AV-TEST before picking a product. The top performers change, so current data matters more than brand reputation.
Back up your files before you need to wipe. This sounds obvious but it is the thing people always forget until the reset has already started. Keep a copy of personal files on an external drive or cloud storage. If your data is backed up, a wipe goes from being a stressful emergency to a minor inconvenience that takes an afternoon.
Keep data on a separate drive or partition from Windows where possible. If your documents, photos, and downloads live on D: rather than C:, you can wipe the system drive without touching your personal files at all. It is a simple habit that makes future resets much less painful.
Before wiping, write down which apps you use and check that you have the licence keys or login details for anything that needs reactivating. Windows keeps its own licence tied to the hardware, so that is fine. But things like Adobe Creative Cloud, Microsoft 365, or specialist software may need reactivating or reinstalling from scratch, and you will want the account details ready. Also note any custom drivers, especially for printers or specialist hardware, since reset removes those too. Our guide on backing up Windows before a reset covers exactly what to save and where.
Wipe Windows PC: Summary
To wipe a Windows PC properly, the method depends on what you are trying to achieve. For a quick fresh start, Reset this PC with Remove everything from Settings does the job in under an hour. For selling or recycling, always add the clean the drive option so previous files cannot be easily recovered. For a proper secure erase before disposal, DiskPart clean all overwrites every sector and is the most thorough option available without third-party tools. And if Windows itself is too broken to get into Settings, boot from a USB and either use WinRE or do a full clean install by deleting partitions during setup. Whichever route you take, make sure your data is backed up first, because there is no coming back from a completed wipe.

