Forrest logo
back to the efibootmgr tool

efibootmgr:tldr:a99f9

efibootmgr: Delete a boot option.
$ sudo efibootmgr -b ${0008} --delete-bootnum
try on your machine

The command "sudo efibootmgr -b ${0008} --delete-bootnum" is used to delete a boot entry in the EFI (Extensible Firmware Interface) boot menu.

Here's a breakdown of each component of the command:

  • "sudo" indicates that the command is executed with administrative privileges. It allows the user to have root access or act as a superuser.

  • "efibootmgr" is a Linux command-line tool for managing EFI boot entries. It helps in manipulating the UEFI (Unified Extensible Firmware Interface) boot manager from the operating system.

  • "-b ${0008}" specifies the boot entry number or index to be deleted. In this case, the number is represented as "0008". The actual number could vary based on the specific system configuration.

  • "--delete-bootnum" is an option/flag used with the efibootmgr command to delete the specified boot entry number. By using this flag, the boot entry corresponding to the given number will be removed from the EFI boot menu.

Overall, this command with the provided boot entry number deletes a specific boot option from the EFI boot menu.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the efibootmgr tool