Removing EFI Entries

Removing EFI Entries

If you uninstalled Ubuntu but its kentry still shows in the UEFI boot menu, here are two reliable methods to remove it.


Method 1 – Delete EFI Partition and Bootloader Entry

Step 1 – Delete Ubuntu EFI Partition with Diskpart

Open Command Prompt as admin and run:

diskpart

list disk

select disk 

list partition

select partition    # EFI/Ubuntu partition (100–500MB FAT32)

delete partition override

exit

This deletes the EFI partition where Ubuntu stored its Bootloader files.

Step 2 – Delete Bootloader Entry with BCDEdit

Still in Command Prompt:

bcdedit /enum firmware

Find the entry labeled Ubuntu, note its identifier (GUID like `{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}`), and remove it:

bcdedit /delete {identifier}

This clears the UEFI boot manager entry.


Method 2 – Remove Only Ubuntu Folder from EFI Partition

Step 1 – Mount EFI Partition

diskpart

list disk          # check available disks

select disk 0      # usually your primary system disk

list partition     # shows partitions

select partition 1 # example: EFI System Partition

assign letter=x    # mounts EFI as drive X:

exit

Step 2 – Navigate and Delete Ubuntu EFI Files

x:                 # switch to EFI partition

dir

cd efi

dir                # list folders (Windows, Boot, Ubuntu, etc.)

rd ubuntu /S       # delete Ubuntu folder recursively

y                  # confirm deletion

This method keeps the EFI partition but removes only the Ubuntu folder inside it.


Explanation

Method 1 completely deletes the Ubuntu EFI partition and its boot entry. Use this if the partition was created on a seperate drive from windows. If deleted with windows inside, the windows will NOT BOOT.

Method 2 mounts the EFI system partition, navigates inside, and deletes only the ubuntu folder. Use this if you share the EFI partition with Windows (common on most dual-boot setups).

BCDEdit ensures leftover boot entries pointing to non-existent files are removed.