diskutil list internal
-bash-3.2# diskutil list internal
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk2 128.9 GB disk0s2
3: Microsoft Basic Data BOOTCAMP 121.7 GB disk0s3
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +128.9 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD - Données 11.4 GB disk2s1
2: APFS Volume Preboot 218.4 MB disk2s2
3: APFS Volume Recovery 655.5 MB disk2s3
4: APFS Volume VM 1.1 MB disk2s4
5: APFS Volume Macintosh HD 14.9 GB disk2s5
diskutil eraseDisk apfs "Macintosh HD" gpt disk0
-bash-3.2# diskutil eraseDisk apfs "Macintosh HD" gpt disk0
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk0s2 as APFS with name Macintosh HD
Mounting disk
Finished erase on disk0
-bash-3.2# diskutil list internal
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk2 250.7 GB disk0s2
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 24.6 KB disk2s1