list (Show status of all current APFS Containers)
listUsers (List cryptographic users/keys of an APFS Volume)
listSnapshots (List APFS Snapshots in a mounted APFS Volume)
listVolumeGroups (List all current APFS Volume Group relationships)
convert (Nondestructively convert from HFS to APFS)
create (Create a new APFS Container with one APFS Volume)
createContainer (Create a new empty APFS Container)
deleteContainer (Delete an APFS Container and reformat disks to HFS)
resizeContainer (Resize an APFS Container and its disk space usage)
addVolume (Export a new APFS Volume from an APFS Container)
deleteVolume (Remove an APFS Volume from its APFS Container)
eraseVolume (Erase contents of, but keep, an APFS Volume)
changeVolumeRole (Change the Role metadata flags of an APFS Volume)
unlockVolume (Unlock an encrypted APFS Volume which is locked)
lockVolume (Lock an encrypted APFS Volume (diskutil unmount))
changePassphrase (Change the passphrase of a cryptographic user)
setPassphraseHint (Set or clear passphrase hint of a cryptographic user)
encryptVolume (Enable FileVault security in background or instantly)
decryptVolume (Disable FileVault security in background or instantly)
deleteSnapshot (Remove an APFS Snapshot from an APFS Volume)
defragment (Arm or check status or begin APFS defragmentation)
updatePreboot (Update a macOS Volume's related APFS Preboot Volume)
syncPatchUsers (Copy Volume Group crypto users System-to-Data role)
diskutil apfs <verb> with no options will provide help on that verb
stevenrandolph@Stevens-Air ~ % diskutil apfs deletevolume
Usage: diskutil apfs deleteVolume <apfsVolumeDisk>
where <apfsVolumeDisk> = APFS Volume DiskIdentifier
Remove the given APFS Volume from its APFS Container, losing all of its data.
Ownership of the affected disks is required.
Example: diskutil apfs deleteVolume disk5s1
stevenrandolph@Stevens-Air ~ % diskutil apfs erasevolume
Usage: diskutil apfs eraseVolume <apfsVolumeDisk> -name <newName>
[-passprompt | -passphrase <passphrase> | -stdinpassphrase]
[-passphraseHint <passHint>]
[-role <roles>]
[-group[With] | -sibling <apfsVolumeDisk>]
where <apfsVolumeDisk> = APFS Volume DiskIdentifier
<newName> = Required replacement volume name
<passphrase> = Passphrase if encryption desired
<passHint> = some string that can be shown even while locked
<roles> = "0" or one or more of B|R|V|I|T|S|D|U|N|E|X|H|L|C|Y|G
<apfsVolumeDisk> = another APFS Volume in the same Container
Erase the contents of the given APFS Volume, losing all of its data. Unlike
deleteVolume, the APFS Volume is not removed from its APFS Container. The "new"
APFS Volume will inherit case-sensitivity or not status, but not any other
attributes. If you supply a passphrase, it will (re)appear as encrypted, with
an initial user of the "Disk" user; otherwise, it will not be encrypted.
Ownership of the affected disks is required.
Example: diskutil apfs eraseVolume disk5s1 -name Bar
stevenrandolph@Stevens-Air ~ %