You can remove an existing OS by backing up files, decrypting protected drives, then deleting its partitions from a bootable installer before you install something new.
Removing an operating system sounds like one action, but it’s usually a chain of small decisions. Are you wiping a laptop to sell it? Switching to Linux? Cleaning up a dual-boot menu? Each goal changes what “remove” means and what you should touch on the drive.
This walkthrough keeps you away from the common traps: losing access to encrypted storage, erasing the wrong disk, or ending up with a machine that won’t boot. You’ll follow a safe order of steps, use the tools inside Setup, and run a couple of checks that save a lot of time.
What “Remove” Means In Real Life
Most people land on this topic for one of these reasons:
- Replace the OS. You want a clean slate and plan to install Windows again or install a different system.
- Remove Windows From A Dual-Boot PC. You want to keep another OS and delete only the Windows side.
- Wipe A Drive Before Selling Or Recycling. You want personal data gone and the device ready for the next owner.
- Free A Disk Used For A Second Install. You installed Windows on a spare SSD and now want that space back.
The steps overlap, but the stop points differ. Read the prep section first, then jump to the path that matches your goal.
Before You Touch Partitions
Back Up What You Can’t Replace
Copy files to two places if you can: an external drive and a cloud folder. Start with the stuff that’s painful to recreate: photos, project folders, browser profiles, password manager exports, product codes, and saved game folders.
If you use OneDrive, confirm Desktop, Documents, and Pictures finished syncing. A quick spot check beats an ugly surprise after the wipe.
Check BitLocker And Save Recovery Info
If the system drive is encrypted with BitLocker, decrypting first makes the removal smoother. It also lowers the odds of getting locked out during boot changes. If you might need the recovery code later, save it now while the PC still boots.
Open Manage BitLocker (search it from Start), then check the status for each drive. If encryption is on, decide what fits your plan:
- Full removal or OS swap: decrypt the drive first if you have the time.
- Fast wipe for resale: keep encryption on, wipe through a clean install path, then stop at the first-run setup screen. This still removes your accounts and files from the installed system.
If you’re unsure where your recovery code lives, take five minutes now to store it somewhere you control before you change boot settings.
Know What Happens To Licenses And Apps
Removing Windows deletes installed apps and local settings on that drive. Paid software may need re-activation after you reinstall. For games, copy any local save folders that don’t sync to Steam, Xbox, or Epic.
If you plan to install Windows again on the same PC, activation is often tied to the hardware. If you’re moving to a different computer, don’t assume the same license moves with you unless you know the license type.
Identify The Exact Disk You Will Wipe
On desktops with multiple drives, the riskiest mistake is erasing the wrong disk. Open Disk Management and write down the size of each drive and what letter it uses. If you have a spare drive that doesn’t need to be present, unplug it before you start.
Also note this: Setup screens often list partitions, not friendly drive letters. Your best anchor is disk size and the number of partitions on that disk.
How To Remove Windows
This path is for a full removal: you erase the Windows partitions and leave the disk ready for a fresh install of Windows or another OS. The cleanest way is from bootable media, not from inside the running system.
Create A Bootable USB Installer
You’ll need a USB drive (8 GB or larger is typical) and a working PC to create the installer. Microsoft’s official instructions walk you through the Media Creation Tool and the steps to make installation media. Create installation media for Windows is a solid starting point.
Boot From The USB Drive
Restart the computer and open the boot menu. Common boot-menu buttons include F12, Esc, or F9; the exact one varies by brand. Pick the USB device. If you see a screen that says “Press any button to boot,” tap a keyboard button right away.
If the PC refuses to boot from USB, check firmware settings for USB boot options. Many modern machines still boot fine with Secure Boot on, yet some older Linux installers may need Secure Boot off during installation.
Delete The Windows Partitions In Setup
In Windows Setup, choose the custom install option so you can view partitions. You’ll see entries like EFI System Partition, MSR, Recovery, and one or more primary partitions.
For a full wipe, delete the partitions on the target drive until you have a single block of Unallocated Space. Setup can recreate what it needs when you install Windows again.
Double-check the disk size before you click delete. If the numbers don’t match the drive you meant to wipe, stop and reboot.
Install The New System Or Leave The Disk Blank
At this stage, Windows is removed. You can install Windows to the unallocated space, or you can shut down and boot a different installer to put Linux on the disk.
If you are selling the PC, many people reinstall Windows so the buyer can boot and complete first-run setup. If you are handing the machine to a friend, ask what they prefer before you reinstall.
Decision Table: Pick The Right Removal Path
Use this as a quick map before you commit. The “what you need ready” column is the part people forget.
| Goal | Best approach | What you need ready |
|---|---|---|
| Replace Windows with fresh Windows | Boot USB, delete partitions, install | Installer USB, Wi-Fi driver plan, backups |
| Replace Windows with Linux | Boot Linux USB, wipe disk, install | Linux ISO USB, Secure Boot plan, backups |
| Remove Windows from dual-boot | Boot into the OS you keep, fix boot menu, delete Windows partitions | Boot repair option for your OS, partition map |
| Wipe drive for resale | Clean install, then stop at first-run screen | Installer USB, device drivers, proof of license |
| Free a secondary SSD used for Windows | Boot main OS, format that SSD in Disk Management | Confirm which disk is secondary |
| Remove Windows from a VM | Delete the VM and its virtual disk file | Export VM files you want to keep |
| Keep Windows but remove bloat | Reset this PC (keep files) or clean reinstall | Account passwords, app installers |
| Erase sensitive data beyond normal delete | Use drive’s secure erase or full-disk wipe tool | Vendor tool, time to run it, backups |
Removing Windows From A Dual-Boot Setup Safely
Dual-boot systems fail in a predictable way: you delete Windows partitions first, then discover the bootloader still points at them. Fix the boot path before you erase the data.
Step 1: Boot Into The OS You Will Keep
If you’re keeping Linux, boot into Linux. If you’re keeping a second Windows install on another disk, boot into that one. Do not start by deleting partitions from inside the Windows you plan to remove.
Step 2: Fix The Boot Menu Entry
On a Linux system that uses GRUB, regenerate the boot menu so it no longer lists the removed Windows install. Many distros provide an update command or a settings screen for this.
On a Windows-only setup with multiple installs, you can use System Configuration (msconfig) to remove an old boot entry after you confirm which one is active.
Step 3: Delete The Windows Partitions
Once the boot flow works without the Windows install, delete the Windows partitions from the OS you kept. Disk Management in Windows can delete partitions on a secondary disk. Linux tools like GParted can do the same.
Leave the EFI System Partition alone unless you know it belongs only to the Windows install you’re deleting. Many dual-boot builds share a single EFI partition for both systems.
Step 4: Reclaim Space
After deletion, expand your remaining partition into the unallocated space. On Windows, that’s “Extend Volume.” On Linux, use your partition tool to grow the filesystem.
Resizing works best when the unallocated space sits next to the partition you want to extend. If it doesn’t, a tool may need to move partitions, which takes longer and carries more risk.
Common Problems And Fast Fixes
Setup Won’t Let You Delete A Partition
This often happens when you booted into the wrong mode or the disk has protection flags. Start by unplugging extra drives and trying again. If the disk is encrypted, decrypt it first inside Windows before you boot the installer.
If you’re stuck in Setup, a command prompt is available with Shift+F10 on many systems. From there, advanced users can use disk tools to remove the partition table. Use this only if you are certain you selected the correct disk.
You Wiped Windows And Now The PC Won’t Boot
If you deleted the active boot files, the machine may drop into firmware and show no bootable device. That’s expected if no OS remains on any drive. Boot your installer USB and install the OS you want.
If another OS is still installed and you can’t reach it, repair the bootloader for that OS. For Linux, many distros offer a live USB repair path. For Windows, Startup Repair from installation media can rebuild boot files for the remaining install.
BitLocker May Ask For Recovery After Boot Changes
BitLocker can request the recovery code after firmware changes or when the boot environment changes. If you saved it earlier, you can enter it and proceed. If you didn’t save it, you may need access to the account where it was stored.
Partition Cheat Sheet For Wipes And Reinstalls
When you see a long list of partitions in Setup, it helps to know what they do. The labels vary, yet the roles stay consistent.
| Partition label you may see | What it is | What to do with it |
|---|---|---|
| EFI System Partition (ESP) | Boot files for UEFI systems | Keep it if another OS uses it; delete only for full wipe |
| MSR | Microsoft Reserved partition on GPT disks | Delete only for full wipe |
| Recovery | WinRE tools for repair/reset | Keep if you rely on built-in recovery; delete for full wipe |
| Primary | Main data volume where the OS and files live | Delete for full wipe; format if reinstalling in place |
| OEM | Factory tools or vendor recovery image | Keep if you want factory restore; delete if you want clean slate |
| Linux ext4 / swap | Linux partitions on dual-boot machines | Keep them if Linux stays; delete if Linux goes |
| Unallocated Space | No partition table entry yet | Select it as the install target for a clean install |
Clean Handoff For A Sale Or Donation
If the goal is to pass the device to a new owner, a clean install is the simplest handoff. After installation, go through the first-run setup until you reach the account sign-in stage, then shut down. That leaves the next person to finish setup with their own account.
After reinstalling, check Device Manager for missing drivers and connect to Wi-Fi so Windows Update can pull the basics. Then reboot once. If it returns to the setup screen, you’re done.
Final Checklist Before You Press Delete
- Backups verified with a spot-open test
- BitLocker status checked and recovery code saved
- Target disk confirmed by size and model
- Extra drives unplugged or clearly identified
- Installer USB tested on the target PC
References & Sources
- Microsoft Support.“Create installation media for Windows.”Steps to make official bootable installation media using Microsoft’s tools.
