How to delete or uninstall Windows from your PC

Some of our readers have asked us how they can remove Windows from their computers. Some of them want to remove Windows and empty their drives, some have dual-boot configurations and want to keep only one Windows version, and other have Windows and Linux running alongside, and prefer to get rid of Windows altogether. We wanted to help, so here are all the steps you need to take in these situations:

IMPORTANT: Make sure that you back up the data you have on the drive where Windows is installed. If you do not back it up while Windows is installed and works well, you risk losing your data if something goes wrong along the way.

1. How to delete Windows when it is the only operating system installed

If you installed just one Windows operating system, then the uninstallation is simple. Create a USB recovery drive or an installation CD/DVD or USB memory stick with the operating system that you want to use next, and boot from it.

Choosing to boot from a CD in the BIOS/UEFI Boot Menu

Then, on the recovery screen or during the installation of the new operating system, select the existing Windows partition(s) and format or delete it (them).

Deleting a Windows partition

Alternatively, you can boot from the recovery disk, load Command Prompt, and then use the diskpart and format commands to remove or format the Windows partition(s) you no longer need. If you need help with these commands or with opening Command Prompt from the recovery environment, you find instructions in these tutorials:

2. How to delete one Windows when you have multiple Windows operating systems installed in a dual-boot or multi-boot configuration

What if you have two or more Windows operating systems installed on the same computer, and you want to uninstall one of them? For example, let's assume that you have installed Windows 10 to dual-boot alongside Windows 7. You may want to remove the older Windows 7 and use the space occupied by Windows 7 to create a new partition or to resize your existing Windows 10 partition. How do you do that?

Windows 10 and Windows 7 in a dual-boot setup

First of all, remove the boot entry for the Windows version that you want to uninstall. In our example, that's Windows 7. Perform this action from the version of Windows that you want to keep. In our case, that is Windows 10.

Start the Windows operating system that you want to keep and open the System Configuration tool. A quick way to launch it is to use the Run window. Simultaneously press the Windows + R keys on your keyboard and, in the Run window, enter type msconfig. Press Enter or click/tap OK, and the System Configuration tool opens.

Running msconfig in Windows 10

We use the System Configuration tool because it is available in all Windows versions. If you prefer, you can also use other boot managers, but make sure that the one you choose is compatible with all the operating systems that you have installed.

In System Configuration, go to the Boot tab, and check whether the Windows that you want to keep is set as default. To do that, select it and then press "Set as default."

Setting the default operating system

Next, select the Windows that you want to uninstall, click Delete, and then Apply or OK.

Deleting a Windows operating system from System Configuration

To test if everything is OK with the Windows that you want to keep, restart your computer and see if you can boot without problems. You should be able to.

Restarting Windows 10 to apply the changes

If something terribly wrong happens and you cannot boot correctly, you can repair the boot entries using the Windows installation media. Read Fix problems that keep Windows from loading, with Startup Repair and How to use the Command Prompt to fix issues with your PC's boot records, for help.

Now that the boot entry is gone, it is time to erase or format the partition used by the Windows that you want removed. Format it if you plan to reuse that partition to install another operating system, or eliminate the entire volume if you would instead use that space to extend other partitions.

For both actions, you can use the Disk Management tool. Open it with a click/tap on its shortcut from the WinX menu (press Win + X on your keyboard), or use one of the methods we described here.

Opening Disk Management from the WinX menu

In the Disk Management window, right-click or tap and hold on the partition that you want to be removed (the one with the operating system that you uninstall), and select "Delete Volume" to erase it. Then, you can add the available space to other partitions.

Deleting a Windows partition in Disk Management

If you want to reuse the same partition for another operating system, you should format the partition instead of deleting it. For example, if you want to remove Windows 7 so that you can install another operating system, select the partition, right-click or tap and hold on it, and then click/tap on Format in the contextual menu.

Formatting a Windows partition in Disk Management

Windows warns you that you are about to erase all the data stored on that partition, and you might also get a warning that the selected partition is in use. To continue the formatting, press Yes. Once you do that, you can see that the Windows that you wanted to uninstall has been removed.

3. How to delete Windows when you installed it alongside a Linux distribution such as Ubuntu, in a dual-boot or multi-boot configuration

If you have a multi-boot setup that includes non-Microsoft operating systems, like Ubuntu Linux, the steps are similar to the ones in the previous section, but you have to perform them from Linux. Let's assume that you have a dual-boot setup with Ubuntu and Windows 10 running alongside on the same computer. How do you get rid of Windows 10 and keep Ubuntu?

Linux Ubuntu and Windows 10 in a dual-boot setup

First of all, remove the Windows 10 system partition(s). To do so, you need an app that can manage drives and partitions. The one found by default in Ubuntu is called Disks. Start by opening the Applications menu with a click/tap on its button from the bottom-left corner of the screen.

The Applications menu from Ubuntu

On the Applications screen, type disks in the search field from the top. In the list of search results, click or tap Disks.

The Disks app from Ubuntu

In the Disks app, select the Windows partition that you want to remove. It should be easy to spot because it's usually formatted using NTFS. After you select it, click/tap the - (minus) button beneath the list of Volumes.

Deleting a Windows 10 partition, using Disks in Ubuntu

Ubuntu asks if you "are sure you want to delete the partition." Click Delete.

Confirming the removal of the Windows partition

Confirm the action by entering the administrator password, and then click/tap Authenticate.

Authenticating as an administrator in Ubuntu Linux

Now, the Windows partition should be no more. However, there may be other Windows partitions found on your computer, such as System Reserved or Recovery partitions. If there are, you might want to delete those also, using the same procedure.

Removing other Windows partitions using Disks in Ubuntu

After you have deleted all the Windows partitions that you no longer need, reboot your computer.

Rebooting the computer in Ubuntu Linux

When your computer starts, the GRUB loader should still show Windows 10 as an available operating system to boot from. However, it does not work, because you deleted its partition(s). To completely forget that a Windows operating system was ever found on your computer, you need to delete its entry from the GRUB boot menu. Fortunately, that's easy: start Ubuntu again and login with your user account.

Open a Terminal window by simultaneously pressing the Ctrl + Alt + T keys on your keyboard. In the Terminal, type the command sudo update-grub and press Enter. Type the password of your administrator account and press Enter once more.

Running sudo update-grub to remove Windows from the boot menu

After a moment or two, Ubuntu updates the GRUB boot menu and removes the Windows 10 entry from it. From now on, you can enjoy a Windows-free Linux experience. :)

Why did you want to remove Windows?

As you have seen, uninstalling Windows is not as hard as it may seem. Anyone can do it with a bit of attention to the steps detailed above. If you are looking for guides on installing different versions of Windows, do not hesitate to read the recommendations below and, if you have something to add to our guide, write us a comment.