When trying to delete a partition in Windows, you may encounter the following error:
Virtual Disk Error: Delete is not allowed on the current boot, system, pagefile, crashdump, or hibernation volume.
Solution: Connect the disk to a different computer as an external drive and delete it there. ( EFI partition deletion is not recommened on laptops due to complications.)
Before attempting deletion, confirm which EFI partition is actively used for booting.
Open Command Prompt as Administrator and run:
bcdedit /enum firmware
Under each {bootmgr}
or {current}
entry, look for the device or path.
device partition=\Device\HarddiskVolume1
or partition=C:
Important: Do not delete the partition that's actively booting the system.
Alternatively, use diskpart:
diskpart
list disk
select disk X (replace X with your disk number)
list partition
Look for a partition labeled EFI SYSTEM PARTITION.
Once you have confirmed which EFI partition is idle (not in use), proceed with deletion. You may delete it with Partition Resizer which is a free Windows tool or you may use diskpart command 'delete partition override' again to remove the EFI partition when you connect the disk to another PC as an external hard drive.
Note: If it's some other partitions such as the recovery partition you want to delete, use this following cmd too.
diskpart
list disk
select disk X
list partition
select partition Y
delete partition override
Download and install IM-Magic Partition Resizer to safely delete EFI, recovery, or system partitions without harming your boot drive.
For Windows 11/10/8/7: Download Partition Resizer Free [100% Free]
For Windows Server 2025-2003: Download Partition Resizer Server [Free Demo]
delete partition override
)If you've connected the disk to another PC as an external drive:
diskpart
list disk
select disk X
list partition
select partition Y
delete partition override
This forces Windows to delete protected partitions.