How to Remove GRUB from UEFI Dual Boot Using Windows 10/11

This step-by-step tutorial explains how to remove the GRUB bootloader from a UEFI-based dual-boot setup (Windows 10/11 + Linux) directly from Windows. The method uses only the built-in Diskpart utility and Command Prompt to mount the EFI System Partition and delete the Linux bootloader folder. This restores the Windows Boot Manager as the sole bootloader.

Important notes before starting:

Step 1: Open Command Prompt as Administrator

Press the Windows key and type CMD in the search bar.

Right-click on Command Prompt and select Run as administrator.

Click Yes when the User Account Control prompt appears.

Step 2: Launch Diskpart and Identify the EFI Partition

In the Command Prompt window, type the following command and press Enter:

diskpart

Now run these commands one by one (press Enter after each):

list disk

select disk 0

Note: Replace 0 with the number of your main system disk (usually Disk 0 - the one containing Windows and the EFI partition). Confirm by checking the size.

Next, list the partitions:

list partition

Identify the EFI System Partition:

Select it (replace 1 with the actual partition number shown):

select partition 1

Step 3: Assign a Drive Letter to the EFI Partition

Assign a temporary drive letter (we will use X in this example - choose any unused letter such as Z or W if X is already in use):

assign letter=X

Type the following to exit Diskpart:

exit

Step 4: Access the EFI Partition and Delete the Linux Bootloader Folder

Type the assigned drive letter followed by a colon and press Enter:

X:

List the contents to confirm:

dir

Change into the EFI directory:

cd EFI

List the folders inside:

dir

You will see folders such as:

Common Linux bootloader folder names:

Delete the Linux folder (replace ubuntu with your actual folder name):

rmdir ubuntu /s

When prompted Are you sure (Y/N)?, type Y and press Enter.

Step 5: Clean Up and Restart

Type the following to return to the root and exit Command Prompt:

cd \

exit

Close the Command Prompt window.

Restart your computer completely.

Verification After Restart

Your system should now boot directly into Windows without showing the GRUB menu. The Windows Boot Manager is now the only bootloader.

Done.