-bash-3.2# diskutil ap deleteContainer
Usage: diskutil apfs deleteContainer <containerRefDisk> [<name>]
diskutil apfs deleteContainer <physicalStoreDisk> [<name>]
diskutil apfs deleteContainer -force <physicalStoreDisk> [<name>]
where <containerRefDisk> = Container Reference DiskIdentifier
<physicalStoreDisk> = DiskIdentifier to use if Container damaged
<name> = a new name (base) for the old Physical Store(s)
Delete an APFS Container. All of its APFS Volumes will be deleted, and all of
its former APFS Physical Store disks will be reformatted as HFS. Data on all
APFS Volumes will be lost. You can specify the Container by its Container
Reference disk or by its Physical Store disk. You can optionally specify a new
name for your reformatted disk(s), or else "Untitled" will be chosen; if
there were multiple Physical Stores, a space and a number suffix is added for
each. The "-force" option can be used as a last resort to reclaim your disk(s)
in case of Container damage, in which case you must specify a Physical Store
disk and you might have to manually delete any other "peer" (Fusion) Physical
Stores which defined the Container. Ownership of the affected disks is required.
Example: apfs deleteContainer disk5
-bash-3.2#