If you dual-booted Ubuntu with Windows 11 and no longer need it, you can remove Ubuntu, reclaim its disk space for Windows, and get rid of the GRUB boot menu. There are two parts: deleting Ubuntu’s partitions and removing its boot entry. The order matters, because done wrong, the PC can stop booting. This guide walks through the safe order step by step, plus how to fix a “grub rescue” screen and how to uninstall Ubuntu if it was installed through WSL instead.
Quick Answer
In Windows 11, set Windows Boot Manager as the first boot option in your BIOS/UEFI. Then open an administrator Command Prompt, run mountvol S: /S, and delete the Ubuntu boot folder with rmdir /s S:\EFI\ubuntu. Finally, open Disk Management, delete Ubuntu’s partitions, and extend C: into the free space.

Before You Start
- Back up any files you want from Ubuntu. Boot into Ubuntu and copy them to a USB drive or cloud storage first.
- Have a Windows 11 installation USB ready in case you need to repair booting.
- BitLocker: save your recovery key. Changing boot settings may trigger a recovery key prompt.
- These steps assume a modern UEFI PC, which covers essentially all Windows 11 PCs.
Step 1: Make Windows Boot Manager the Default
- Restart and enter BIOS/UEFI setup (often F2, Del, F10, or Esc). From Windows, you can also go to Settings > System > Recovery > Advanced startup > Restart now > Troubleshoot > Advanced options > UEFI Firmware Settings.
- In the Boot section, move Windows Boot Manager to the top, above “ubuntu.”
- Save and exit. The PC should boot straight into Windows without the GRUB menu.
Step 2: Remove Ubuntu’s Boot Files
- In Windows, open Command Prompt as administrator.
- Run
mountvol S: /Sto give the EFI System Partition the drive letter S:. - Run
dir S:\EFI. You should see folders like Microsoft, Boot, and ubuntu. - Run
rmdir /s S:\EFI\ubuntuand confirm with Y. Delete only the ubuntu folder. Never delete Microsoft or Boot. - Run
mountvol S: /Dto remove the drive letter.
You can also remove the leftover “ubuntu” entry from the UEFI boot list. Many firmware setups let you delete boot options directly. Otherwise, it disappears or becomes harmless once the folder is gone.
Step 3: Delete Ubuntu’s Partitions
- Right-click Start and open Disk Management.
- Identify Ubuntu’s partitions. They usually have no drive letter, show as “Healthy (Primary Partition)” with no file system Windows recognizes, and match the sizes you gave Ubuntu (including a swap partition if one exists).
- Right-click each Ubuntu partition and choose Delete Volume, then Yes.
Do not delete the EFI System Partition, the Recovery partition, or C:.
Step 4: Give the Space Back to Windows
- In Disk Management, right-click C: and choose Extend Volume.
- Follow the wizard to add the unallocated space.
Extend Volume is greyed out? The free space must be directly to the right of C:. If a Recovery partition sits between them, create a new volume in the free space instead (New Simple Volume), or use a trusted partition tool to move the recovery partition.
Fix “grub rescue” or a PC That Won’t Boot
- Boot from the Windows 11 installation USB.
- Choose Next > Repair your computer > Troubleshoot > Command Prompt.
- Run
bcdboot C:\Windows /f UEFI. If C: isn’t the Windows drive in this environment, usediskpartandlist volto find the right letter. - Restart, remove the USB, and set Windows Boot Manager first in the BIOS.
If Ubuntu Was Installed Through WSL (Not Dual Boot)
If you ran Ubuntu inside Windows with WSL, there are no partitions or GRUB to remove:
- Run
wsl --unregister Ubuntuin PowerShell to delete the distribution and its files. This permanently removes everything inside it, so back up first. - Then uninstall Ubuntu from Settings > Apps > Installed apps.
- Optionally, remove WSL itself with
wsl --uninstall.
Frequently Asked Questions
Will removing Ubuntu delete my Windows files?
No, as long as you only delete Ubuntu’s partitions and the ubuntu EFI folder.
How do I tell which partition is Ubuntu?
Ubuntu partitions have no drive letter and don’t show NTFS or FAT32 as their file system. Match them to the sizes you chose during the Ubuntu install.
Is this the same on Windows 10?
Yes. See our guide to uninstalling Ubuntu on Windows 10 for the Windows 10 version.
Summary
- Back up Ubuntu files and set Windows Boot Manager first in BIOS.
- Mount the EFI partition and delete only the ubuntu folder.
- Delete Ubuntu’s partitions in Disk Management.
- Extend C: into the free space.
- Repair booting with
bcdbootfrom a Windows USB if needed.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.