asr restore --s / --t /Vol*/BOOT --erase --noprompt
diskutil list
diskutil ap deleteContainer disk1 "Macintosh HD"
diskutil list
Last login: Tue Nov 3 17:48:42 on console
MacBookdeMaithe:~ maithealho$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *160.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 155.0 GB disk0s2
3: Apple_HFS OS X Base System 4.7 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +155.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 25.5 GB disk1s1
2: APFS Volume Preboot 21.9 MB disk1s2
3: APFS Volume Recovery 512.1 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
MacBookdeMaithe:~ maithealho$
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
Modifying partition map
Growing APFS data structures
Finished APFS operation
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *160.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 159.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +159.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 29.2 GB disk1s1
2: APFS Volume Preboot 21.9 MB disk1s2
3: APFS Volume Recovery 512.1 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
0: GUID_partition_scheme *121.3GB disk0
1: EFI EFI 209.7MB disk0s1
diskutil eraseDisk apfs "Macintosh HD" gpt disk0
diskutil eraseDisk jhfs+ "Macintosh HD" gpt disk0