Many users install Ubuntu and Windows 10 side-by-side on one hard drive. However, what if they decide to leave Ubuntu for some reason and want to safely uninstall it without having any effects on Windows 10? This article will provide a step-by-step tutorial for removing Ubuntu from Windows dual-boot systems safely.
This procedure will remove Ubuntu from your device and permanently delete all of the data you had stored there. Make sure to move any data you might not want to delete elsewhere before making any changes to your computer.
There are two steps to uninstalling Ubuntu from your system. The first step is to uninstall Linux from your computer, and the second step is to remove the bootloader.
Step 1: Deleting Ubuntu Partitions
If you installed Ubuntu in a dual boot setup on its own partition, all you need to do is uninstall that Linux partition from your computer. Let’s take a closer look at how to get all that done.
Initially, boot into your Windows operating system to begin the process. To access the disk management tool, open the search bar by pressing Windows + r, then type “diskmgmt.msc” and the following window will pop up.

By looking at the partition’s size, you can quickly identify the Ubuntu partition. If you still can’t identify it, another tip is to look at the partitions that lack a file system and drive number. Windows files are typically in NTFS or FAT file systems and are identified by a drive letter, such as C, D, E, or F.

In order to uninstall Ubuntu, first, select all of the Ubuntu partitions with a right-click and then choose Delete Volume.

Once the partitions have been deleted, they will show up as unallocated space on the Windows partition table. At this point, you can either create a new partition or extend an existing one using the unallocated space.

Step II: Removing the Grub Boot-Loader
Once you remove Ubuntu from your system, the boot loader is still there and needs to be removed as well. There are several ways to fix the boot loader; we’ll talk about the easiest two here:
Using a Command Prompt
You do not require a USB or CD for the installation of Windows when using this method. Simply search for the command prompt in Windows and select the option to run it as an administrator.

To set the correct EFI for default boot entry, type the following command into the command prompt once it has opened:
bcdedit /set "{bootmgr}" path \efi\microsoft\boot\bootmgfw.efi
In order to verify that the command was successful, boot your computer after that. Windows will successfully direct you there.
Using UEFI for changing boot orders
Additionally, you can alter the UEFI boot orders from the firmware settings. To do this, go to settings and choose Update Security:

There will be a number of options presented in the following window; select “Recovery” and then click “Restart Now.”

When the system restarts, a window will appear asking you to select “Troubleshoot” and then “Advanced Options.”

Next, select “UEFI Firmware Settings” and a screen with a “Restart” option will appear. If you choose this, the computer will successfully load into the BIOS.

In this article, we discussed the removal of Linux partitions first from your Windows and then two ways to fix the bootloader. To successfully remove Ubuntu from the dual boot system, adhere to the steps listed above.
References:
- https://askubuntu.com/questions/1123089/uninstall-ubuntu-dual-boot
- https://linuxhint.com/remove-ubuntu-dual-boot-from-windows-10/
- https://itsfoss.com/uninstall-ubuntu-linux-windows-dual-boot/