/delete
Deletes a boot entry from a BCD store:
bcdedit [/store filename] /delete id [/f] [/cleanup | /nocleanup]
Parameters
/store filename
Optional. The BCD store to be used. The default value is the system store. /store is discussed later in this paper.
id
Required. The identifier of the boot entry to be deleted.
/f
Optional. Force deletion. You must use this option to delete boot entries that have a well-known identifier. It is not required for other boot entries.
/cleanup | /nocleanup
Optional. These options specify whether the boot entry should be removed from the display order. The default value is /cleanup.
/cleanup
Removes the boot entry from the display order. If you delete an operating system boot loader entry, the associated resume-from-hibernation boot entry is also deleted, as long as it is not referenced by any other operating system loaders.
/nocleanup
Deletes the specified boot entry without removing it from the display order.
Examples
The following command deletes the specified Windows boot loader entry from the system BCD store and from the display order:
bcdedit /delete {cbd971bf-b7b8-4885-951a-fa03044f5d71}
The following command deletes the specified Windows boot loader entry from the system BCD store and from the display order:
bcdedit /delete {cbd971bf-b7b8-4885-951a-fa03044f5d71} /cleanup
The following command deletes the specified Windows boot loader entry from the system BCD store without removing the boot entry from the display order:
bcdedit /delete {cbd971bf-b7b8-4885-951a-fa03044f5d71} /nocleanup
The following command deletes the Ntldr boot entry from the system BCD store:
bcdedit /delete {ntldr} /f
/deletevalue
Deletes an element from a boot entry in a BCD store:
bcdedit [/store filename] /deletevalue [id] datatype
Parameters
/store filename
Optional. The BCD store to be used. The default value is the system store. /store is discussed later in this paper.
id
Optional. The identifier of the boot entry that owns the element to be deleted. By default, id is set to {current}.
datatype
Required. The element to be deleted. The elements and data formats that are available for the various boot entry types are listed in “BCDEdit Data Types” later in this paper.
Examples
The following command deletes the bootsequence element from the Boot Manager entry:
bcdedit /deletevalue {bootmgr} bootsequence
The following command deletes the Windows Preinstallation Environment (WinPE) element from the current operating system boot entry:
bcdedit /deletevalue winpe
The following command deletes the WinPE element from the specified Windows boot loader entry:
bcdedit /deletevalue {cbd971bf-b7b8-4885-951a-fa03044f5d71} winpe
Remarks
For more information on BCD elements and data formats, see “BCDEdit Data Types” and “BCDEdit Data Formats” later in this paper.