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.

User uploaded file

The highlighted partition is the one that i would like to remove, here is an image of that volume in Disk Utility.

User uploaded file

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.

User uploaded file

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)

Posted on Aug 24, 2018 10:34 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 25, 2018 2:10 AM

EDIT: A solution that worked for me was to erase that volume to Apple Extended Journaled (HFS) and use the partition feature in Disk Utility to delete the volume. You have to do it in Recovery Mode otherwise it does not work in the normal boot mode.

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to delete an MacOS Extended Volume From Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.