I recently removed Ubuntu from my system and installed Fedora 35 KDE spin. I want to get rid of Ubuntu GRUB since Ubuntu itself no longer exists on my system. I changed the boot order to boot Fedora GRUB first, but I want to completely remove Ubuntu’s one.
Output of lsblk in case it is needed:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /mnt/sda1
sr0 11:0 1 1024M 0 rom
zram0 252:0 0 7.5G 0 disk [SWAP]
nvme0n1 259:0 0 232.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
├─nvme0n1p3 259:3 0 121.4G 0 part /home
└─nvme0n1p4 259:4 0 110G 0 part /
/dev/sda is my secondary HDD used for backups, it has no OS on it.
I don’t know if a more polite way could be this command sudo efibootmgr -b <bootnum> -B
Where -b specifies the boot entry number and -B delete that boot entry.
Maybe under the hood such command delete the directory as you did by hand
I don’t know about it, maybe it will just delete the efi entry and leave the ubuntu folder?
Thats probably safer than handling sudo rm -rf <anything>, it just takes a mistyped space to cause unintended damage.