

For an internal drive, you’ll unfortunately need to reboot. However, if the operation fails and you’re working with an external USB drive, try disconnecting the drive and then plugging it back in. If so, you can safely ignore that message. You may get a message that the APFS container was damaged. diskutil apfs deleteContainer disk2s3 Deleting the APFS partition Running diskutil list gives us our APFS device identifierįinally, issue this command in Terminal to delete the APFS container and its volume, replacing disk2s3 with your actual device identifier. Make note of the device on your external drive (in my case, disk2). Now, launch Terminal and issue this command: diskutil list Use Disk Utility to eject your APFS container
:max_bytes(150000):strip_icc()/paragon-partition-manager-ce-169bbc480807464ca836a7cb35159ae9.png)
First, use Disk Utility to eject your APFS container. Here’s what you need to do in order to go about deleting your APFS partition correctly. This means you can’t merge the partition back into the other partitions on your external hard drive. The same thing happens if you use diskutil the wrong way. If you use Disk Utility to erase an APFS volume and format it HFS+, you’ll find that the old APFS container sticks around. A diskutil list, showing the APFS Container scheme.

Below that, /dev/disk3 is the APFS container, and /dev/disk3s1 is the APFS volume. You can see disk2s2 in the screenshot below, the partition on my external hard drive hosting the APFS Container. In the Terminal, running diskutil list will reveal this in even starker contrast.
