How to erase an APFS Volume from Mac
- • Show volumes:
sudo diskutil list
- output:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 500.0 GB disk0s2
- • Select the disk or volume to delete and enter the command:
sudo diskutil eraseVolume free n DISK_IDENTIFIER_TO_ERASE
- • Add free space to the desired drive:
sudo diskutil apfs resizeContainer DISK_IDENTIFIER_TO_EXPAND 0