How to uninstall the grub bootloader?

Solution 1:

Parts of the bootloader are stored in the UEFI boot partition. For Ubuntu, this is only four files in a Ubuntu subdirectory:

EFI
EFI/ubuntu
EFI/ubuntu/grub.cfg
EFI/ubuntu/grubx64.efi
EFI/ubuntu/MokManager.efi
EFI/ubuntu/shimx64.efi

So, if you can manage to mount to UEFI boot partition (for example using a bootable Ubuntu USB key, choosing "Try It", and using the terminal from there), you can remove the files.

But I suggest you do not bother: when you do you reinstall, the four files will quite simply be overwritten.