I'm scared to remove any other EFI partition because I don't know which one is a grub and which one window boot
Based on your screenshots, you only have one EFI partition in the first place.
Quite possible that either a) you already removed the Ubuntu one, or b) both Windows and Ubuntu are using the same EFI partition.
The EFI partition is just a regular FAT32 partition holding regular files, so uninstalling GRUB basically means deleting the files that were installed by GRUB (grubx64.efi, grub.cfg).
- Use
mountvol S: /s
to assign a disk letter to the EFI partition.
- Use commands such as
dir S:\
, dir S:\EFI\
, etc. to look at what files are stored in that partition. Windows files will always be in \EFI\Microsoft, whereas Ubuntu might have installed GRUB into \EFI\Ubuntu or \EFI\Grub.
- Delete the GRUB files.
However, deleting the files will not remove the EFI boot menu entry, nor the other way around. EFI boot entries are stored in the motherboard's NVRAM and managed using special tools, such as efibootmgr
on Linux or bcdedit
on Windows. (The latter is a confusing dual-purpose tool that simultaneously manages EFI entries and Windows BOOTMGR entries.)
Use bcdedit /enum firmware
to list all EFI boot entries. The command will show their identifiers that you'll need to use later for deletion, as well as which partition and which file they point to.
If you see an entry named like "Ubuntu" or "GRUB", use bcdedit /delete {the-identifier-here}
to remove it.
Note: Many motherboards will also list virtual entries named "Firmware Application" or such. Do not try to delete those.
(If you actually had two EFI partitions, this other thread is about figuring out which partition is used by what OS.)