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 roughly 699 GB that used to belong to Arch now appears as unallocated space. I want to remove only the leftover EFI partition and then reclaim the unallocated space without touching the other partition that still contains data. In an elevated Windows command prompt, I tried DiskPart and used `delete partition override`, but I received an error saying that the requested operation or parameters are not supported. A Windows installation USB also failed to recognize the partition. What is the safest way to fix this?
3 Answers
Windows Disk Management often refuses to remove EFI partitions. A bootable Linux environment with GParted is another option: identify the correct 4 TB SSD, delete only the old EFI partition, apply the changes, and then resize or extend the desired partition. Do not delete or format the partition containing your existing files. If the EFI partition is the one Windows currently uses, leave it in place and only remove the Linux boot files instead.
The error can also happen when the wrong object is selected or when the partition is not actually the one you think it is. Run DiskPart from an administrator terminal and inspect the output of `list disk`, `select disk X`, `detail disk`, and `list partition` before changing anything. If the partition is on a dynamic, Storage Spaces, or otherwise unusual disk, use the appropriate storage-management tool rather than forcing a deletion.
Be careful before deleting it: an EFI System Partition can contain the Windows boot files as well as the old Linux bootloader. If Windows and Arch shared the same EFI partition, deleting it could make Windows unbootable. First check which disk and partition you selected with `list disk`, `list partition`, and `list volume`, and make sure you have a backup. If it is definitely an unused EFI partition, DiskPart usually removes it with: `select disk X`, `select partition Y`, then `delete partition override`. The disk and partition numbers must be verified carefully. Afterward, you can extend an adjacent data partition into the unallocated space if the layout allows it.

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