I previously had a dual-boot setup with Windows on a 1 TB drive and Arch Linux using about 700 GB of a 4 TB SSD. I removed the Arch installation, but its EFI System Partition remains, and the former Linux space now appears as roughly 699 GB of unallocated space. I still have important data on another partition on the same SSD, so I do not want to wipe or reformat the drive. When I open an elevated Command Prompt and use DiskPart, selecting the disk and partition and running `delete partition override` produces a Virtual Disk Service error saying that the operation is not supported by the object or system. A Windows installation USB also failed to recognize the partition. What is the safest way to remove the old EFI partition and make the unallocated space usable without affecting my existing data?
2 Answers
First, make a backup of anything important and confirm the disk and partition numbers carefully. The EFI System Partition may still be needed by Windows, so do not delete it just because it contains an old Linux bootloader. In DiskPart, use `list disk`, `select disk N`, and `list partition` to inspect the layout. You can also check which EFI partition Windows is using with `mountvol S: /S`; if it contains the active Windows boot files, leave it alone. The unallocated 699 GB is not inaccessible—it can be added to an adjacent partition only if the free space is directly next to it. If another partition, including the EFI partition, is between them, use a reputable partition manager that can move partitions, or back up and recreate the layout. Avoid formatting or deleting any partition until the layout and backups are verified.
The error usually means DiskPart is refusing to remove a protected EFI System Partition, not that the command syntax is wrong. If you have verified that it is an abandoned Linux EFI partition and not the one Windows boots from, you may be able to remove it from a proper partition-management environment rather than from the running Windows installation. However, deleting it alone will not automatically merge the 699 GB into another volume; the target partition must be extended afterward, and it may need to be moved first. Take screenshots of Disk Management or `diskpart` output before changing anything, and do not use `clean`, `format`, or partition deletion on the disk containing your data.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures