How to delete an MacOS Extended Volume From Terminal?
Yesterday, I tried to install Windows 10 via BOOTCAMP, but that failed with the error of something like Windows could not be copied. After contacting Apple Support several times, i tried the following commands such as diskutil list.
The highlighted partition is the one that i would like to remove, here is an image of that volume in Disk Utility.
Since the Remove Volume button is greyed out. I couldn't remove the partition there.
Then i tried to run the command diskutil apfs deleteContainer disk0s4, which successfully worked.
That command removed Container disk1 from Disk Utility.
Afterwards i tried the command diskutil apfs removeContainer disk1
which came back with,
"Could not find APFS Container Reference or Physical Store disk1"
I also tried to use the command 'diskutil apfs deleteVolume disk1',
which came back with 'Could not find APFS Volume disk1'
The original volume has changed from APFS Physical Store to Mac OS Extended.
How do i remove a Mac OS Extended Volume from Terminal?
MacBook Air, macOS High Sierra (10.13.6), Terminal Volume Removal (Apple HFS)