Removing Ubuntu from a dual-boot system with Windows 10/11 on a UEFI (GPT) platform may seem complicated, but with a few careful steps and our guidance, you can easily complete the process, recovering storage space while keeping your Windows installation intact and secure.
Uninstall Ubuntu and Free Up Disk Space on Windows
Note: Before we start, remember that removing Ubuntu from a dual-boot system involves restoring the Windows boot menu (which means removing GRUB) and deleting Ubuntu’s partitions. This will erase all data on those partitions, so make absolutely sure you have a backup of any important files.
Step 1. Restore Windows boot loader
To proceed, please download the Windows Boot Loader UEFI recovery file and extract it from the link provided at the end of the article. Once extracted, copy the “bootx64.efi” file to a designated drive, such as drive E. When using a Windows UEFI system, You need to run Command Prompt with administrator privileges to be able to remove Ubuntu dual boot Windows 10 or Windows 11.
To access the “Command Prompt”, locate “cmd” in the search bar and open it. Ensure that the Command Prompt is launched with administrative privileges by selecting “Run as administrator.” In the Command Prompt window, enter the following commands in sequence. To paste the code, either right-click and select “Paste” or press “Ctrl + V”.
mountvol W: /S
Locate the disk where the Windows Boot Loader UEFI file was previously downloaded and extracted.
E: xcopy /y bootx64.efi W:\EFI\Boot rmdir /S W:\EFI\Ubuntu
After remove Ubuntu dual boot using the commands mentioned above, the next step, demonstrated step-by-step by ItsmeIT, is to delete the Ubuntu boot files from the EFI partition in order to completely uninstall Ubuntu from dual boot Windows 11 and Windows 10.
Step 2. Using command BCDEdit to remove boot menu (UUID)
Next, it is necessary to remove the Ubuntu boot menu by identifying its UUID through the use of a specified command.
bcdedit /enum all
Enter the command “bcdedit /delete UUID” to delete the selected Ubuntu boot menu. If there are multiple UUIDs, repeat the process to remove them. Below is an example of deleting a UUID:
bcdedit /delete {d28ddd3f-6f44-11ec-bf02-800edb08da9a}
After you successfully delete the boot menu of Ubuntu, you can proceed to step 3, delete the partition containing the operating system, and completely remove Ubuntu dual boot Windows 11 and 10.
Step 3. Delete Ubuntu partition
To delete the Ubuntu partition, follow these steps on a Windows computer: right-click “This PC->Manage->Storage->Disk Management” Then proceed to delete the Ubuntu partitions, ensuring that they are indeed Ubuntu partitions, as indicated in the image below.
If you are not sure about the above method, try using the software Minitool Partition Wizard Ultimate which provides a user-friendly interface for uninstall Ubuntu from dual boot Windows 10/11. Simply follow the software instruction to delete the Ubuntu partition.
Next, select the partition containing the Ubuntu OS and choose “Delete.” Finally, click on “Apply” to complete the remove of the dual boot of Ubuntu Windows 11 or Windows 10.
After deleting the partitions, you can close Disk Management or Minitool. Your Windows system should now boot directly without the GRUB menu, and you’ll have reclaimed the disk space previously used by Ubuntu.