Software & OS

How to Completely Wipe Your PC (Windows 11 and 10)

To completely wipe your PC on Windows 11, open Settings > System > Recovery, select Reset PC, choose Remove everything, and turn on Clean data. That reinstalls Windows and removes your files, apps and settings, and Clean data also cleans the drive, which is the setting to use before you sell or give the PC away.

The built-in reset covers most people. If you need to erase a whole secondary drive, or you are wiping from outside Windows, diskpart has a clean all command. Both are below, along with the steps to take before you start, because neither can be undone.

Before you wipe: back up and collect what you need

Microsoft's own advice is to back up important files first, since a reset reinstalls Windows and can remove apps, settings and personal files. Copy documents, photos, browser bookmarks and anything stored in folders outside Documents to an external drive or a cloud service. If you need a method, see how to back up files to an external hard drive.

Then check these items, which people usually discover too late:

  • BitLocker recovery key. Microsoft says that if the device is encrypted, you should have the recovery key ready, because Windows RE requires it. To see whether the drive is encrypted, read how to check if BitLocker is enabled.
  • Licences and sign-ins. Note the product keys or accounts for paid software, since the apps will be gone. Sign out of services that limit the number of devices.
  • Power and network. Plug a laptop into mains power. A cloud download, covered below, also needs a working internet connection.
  • Anything on other drives. If the PC has a second internal drive, remember that option exists to wipe it too (see the drive options below).

How to wipe your PC from Settings (Windows 11)

  1. Open Settings and select System > Recovery.
  2. Under Recovery options, select Reset PC.
  3. Choose Remove everything. The other choice, Keep my files, keeps your personal files and removes only apps and settings, so it is not a wipe.
  4. Choose how Windows is reinstalled: Cloud download or Local reinstall.
  5. On the settings screen, turn on Clean data if the PC is leaving your hands.
  6. Confirm, then let the PC restart as often as it needs to. Do not turn it off.

The exact wording of the later screens can vary between Windows builds and with manufacturer customisations, so read each screen rather than following the order above blindly.

How to wipe your PC on Windows 10

Select Start > Settings > Update & Security > Recovery. Under Reset this PC, select Get started, then choose Remove everything and continue as above. Microsoft's page notes that Windows 10 support ended on October 14, 2025 and recommends moving to Windows 11. Wiping does not change that, so a Windows 10 PC that is kept after a reset will not receive regular security updates unless you enrol in an extended programme or upgrade.

Cloud download or local reinstall

Microsoft describes the two options like this:

OptionWhat it doesWhen to pick it
Cloud downloadGets a fresh copy of Windows from the cloud, with the latest updatesLocal system files may be corrupted or missing, and you have a good connection
Local reinstallUses the files already on the PCSlow or no internet connection; the result may not include the latest updates

For a PC you are about to hand over, either one works. The buyer will run Windows Update after setup anyway. If the reset keeps failing with a local reinstall, try the cloud download.

What Clean data does, and what it does not

Microsoft says the Clean data setting "removes files and cleans the drive", and that it might take some time. It recommends it when you plan to donate, recycle or sell the PC. Without it, the reset removes your files but does not clean the drive, so a determined person with recovery software has a better chance of finding leftovers.

Be clear about the limit. The same Microsoft page says the erasure feature does not meet government and industry data erasure standards. For a family laptop or a personal desktop that is usually acceptable. For a drive that held regulated or very sensitive data, NIST SP 800-88 Rev. 2 (September 2025) is the reference: it frames sanitization as making access to the data infeasible for a given level of effort, and your organisation's policy decides which level applies. My article on securely deleting files explains why overwriting is unreliable on SSDs and why encryption plus a reset is the practical choice there. If you have not encrypted the drive yet, turning on BitLocker before the wipe is a cheap extra layer on a drive you will keep using.

How long it takes and what you will see

Expect restarts and long quiet stretches. Microsoft warns that during a reset the screen might go black for a long time, upwards of 15 minutes, and that restarting the PC by hand could make the reset fail. On a laptop, leave it plugged in. If a desktop seems frozen, wait. When it finishes, Windows shows the first-run setup screens (region, keyboard, network, account). If you are selling the PC, stop at that screen and shut it down so the buyer sets up their own account.

Wipe an entire drive with diskpart

The reset reinstalls Windows. Sometimes you want a drive emptied with no operating system at all, for example a spare internal or external drive, or a system drive wiped from installation media. For that, Windows includes diskpart. Run it from an elevated Command Prompt, or from the Command Prompt in Windows setup or Windows RE:

diskpart
select disk 1
clean all

Replace 1 with the number of the disk you mean to erase. Microsoft's documentation says a disk must be selected for clean to succeed, and that select disk is the command that shifts focus to it. Choosing the wrong number erases the wrong drive, so confirm the size and name of the disk before you press Enter.

The two forms do different jobs. According to Microsoft:

  • clean removes all partitions or volume formatting from the disk with focus. On MBR disks only the MBR partitioning information and hidden sector information is overwritten. On GPT disks the partitioning information, including the Protective MBR, is overwritten. That is quick, but the data blocks are not zeroed.
  • clean all sets "each and every sector on the disk" to zero, which Microsoft says completely deletes all data on the disk. It takes much longer, in proportion to the drive size.

Zeroing a hard drive is a sound way to wipe it. On an SSD, a zero pass cannot reach spare flash the drive keeps hidden, so use the drive maker's own sanitize tool or rely on encryption, as the securely-delete article explains. If your goal is just to blank a drive you will keep using, clean followed by creating a new partition and formatting it is usually enough.

Wipe only some things instead

A full wipe is not always the right tool. If the PC is only slow, or you want to remove one person's data, a smaller step may do: uninstall apps, delete a user profile, or use Keep my files to reinstall Windows without touching documents. Choose Remove everything when the goal is to start from nothing, or to pass the machine to someone else.

If the reset fails

If Windows reports that it could not reset the PC, first make sure you did not interrupt it, since Microsoft says a manual restart during the process can cause failure. Try again with the other reinstall option: switch from local reinstall to cloud download, or the reverse. If Windows will not start at all, you can reach the same reset from the recovery environment under Troubleshoot > Reset this PC, and have your BitLocker recovery key ready because it may ask for it. When none of that works, wipe the drive with diskpart from Windows installation media and install Windows fresh.

Frequently asked questions

Does Reset PC with Remove everything completely wipe the drive?
It reinstalls Windows and removes your files, apps and settings. With the Clean data option turned on it also cleans the drive, which Microsoft recommends if you plan to donate, recycle or sell the PC. Microsoft also states that the erasure feature does not meet government and industry data erasure standards, so for highly sensitive data follow your organisation's sanitization policy.
How long does it take to wipe a PC?
Microsoft says Clean data might take some time, and that the screen can stay black for a long period, upwards of 15 minutes, during a reset. Do not restart the PC manually, because Microsoft warns that can make the reset fail. A full diskpart clean all writes zeros to every sector, so its time grows with the size of the drive.
Will I need my BitLocker recovery key?
Possibly. Microsoft says that if the device is encrypted, you should have your BitLocker recovery key ready, because Windows RE requires it. Find the key before you start, not after the PC has shut down.
What is the difference between Keep my files and Remove everything?
Keep my files reinstalls Windows and keeps personal files but removes apps and settings. Remove everything reinstalls Windows and removes personal files, apps and settings. Only Remove everything is a wipe.

Sources