After installing fedora and Centos and other OS now I have them all showing in my Boot menu [F2] on start up not the menu form the OS even after deleting them and reinstaling other OS - Ubuntu -so It just shows one when the OS starts but when I go to UEFI setting I still find all the old ones they instruct you to use DEL to take them out but that does not work


The menu to which you refer is the firmware's built-in boot manager. Its entries are stored in NVRAM, and can be edited by any number of tools in various environments:

  • Some EFIs provide a means to do this via their setup utility. Details vary from one system to another, though, and many don't permit you to add or delete boot manager entries.
  • The EFI version 2 shell provides a command called bcfg that can do the job. You'd need to do bcfg boot dump -b to see the entries, then bcfg boot rm # to delete entry number # -- # must be the number associated with whatever entry you want to remove. For example, if the entry is Boot0002 Fedora, then # is 2.
  • In Linux, efibootmgr can do the job: Type efibootmgr or efibootmgr -v to see the entries, then do efibootmgr -b # -B to delete entry #. (You must type these commands as root or using sudo.)
  • In Windows, the EasyUEFI tool should be able to handle the job, although I've only toyed with it briefly, so I can't give detailed instructions.

Be aware that in any of these cases, you may have leftover files on your EFI System Partition (ESP). You can delete them through normal file-manipulation commands, although depending on your OS, you may need to explicitly mount the ESP. If they aren't referenced, the files won't do any real harm, unless they consume so much space that they prevent you from installing another OS or updating your boot manager. The files will normally be stored in subdirectories of the EFI directory on the ESP; most OSes create subdirectories named after themselves or the companies that create them, such as EFI/ubuntu for Ubuntu or EFI/Microsoft for Windows.

| improve this answer | |
  • Thanks this looks more like what I was looking for but i get " Boot0002 Fedora HD(1,800,64000,302c2451-c097-4942-8007-140e08449e9f)File(\EFI\fedora\shim.efi) " so what should I use for the # ?? I tried the name and then I tried Boot0002 and non of them work – Talal Jun 22 '15 at 18:30
  • OK got it it is just the single number of the boot like in the case above 2 :) thanks alot @RodSmith – Talal Jun 22 '15 at 20:40
  • 1
    Sometimes it is necessary to remove the folder on the EFI partition as well, otherwise it will be added back on reboot askubuntu.com/questions/788708 – Gerhard Burger Jun 19 '16 at 7:37
  • Note that sgdisk -i is useful to determine wheter a partition with a specified GUID exists or not in case you use efibootmgr – Ini Dec 23 '18 at 20:04
  • Isnt's there just one command? I have an old laptop thata doesnt have Windows anymore and the boot options is filled over a 100 'Windows Boot Manager' entries to the point it takes 5 minutes just to load the EFI/Legacy settings. I would like to wipe these fuckers off because it's annoying. I can't install anything because it takes forever to enumerate the boot entries – chx101 Jul 30 '19 at 4:00

OS-Uninstaller is a small graphical tool to perform a clean and quick uninstall of any operating system (Windows, Mac OS X, Ubuntu, other Linux distributions..) of your computer.


  • It supports removing only selected OS boot list entries in the GRUB.

    enter image description here

  • Or completely remove the GRUB and replace it with the original MBR (master boot record) that was there before installing Ubuntu.

  • It also automatically reformats the partition of the OS that you just removed into NTFS (default) or ext4, depending on the OS that was there before.

  • Change the GRUB menu’s display timeout.

  • Backup the partition table and the boot sectors (just in case).

  • It also lets you manually change the MBR and its installed location of hard disk and the partition it’s linking for booting. But for most users, you don't have to tweak any of these.

Download Boot-Repair-Disk. Then create a live USB of it with UNetbootin from the default Ubuntu repositories. In Ubuntu 18.04 and later the UNetbootin package has been discontinued. When I tested the built-in Startup Disk Creator application as a UNetbootin replacement app with a Boot-Repair .iso image it worked in Ubuntu 18.04. Boot with it. A window (Boot-Repair) will appear, close it. Then launch OS-Uninstaller from the bottom left menu. In the OS Uninstaller window, select the OS you want to remove and click the OK button, then click the Apply button in the confirmation window that opens up. When the removal is finished, reboot and check that your system has been removed.

You can also install Boot-Repair, which includes OS-Uninstaller, inside Ubuntu by adding the ppa:yannubuntu/boot-repair PPA to your software sources as follows:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update  
sudo apt install boot-repair  
| improve this answer | |
  • 1
    Lol. Specifically has an eraser erasing away Windows. – chx101 Jul 31 '19 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.