I’ve got a Mojave installation with an APFS drive. I’ve installed and uninstalled Boot Camp partitions several times over the years, and somehow things have gotten out of sync. I can now see the 500GB drive in Disk Utility, but there is only a single 300GB APFS container, and Boot Camp Assistant is giving me some errors when I try to repartition the drive.
I’m due to reinstall macOS from scratch anyway for some other reasons, so I’d like to completely destroy the disk (including all of the APFS containers and volumes) and have it reinitialized back as if it was a freshly out—of-the-box machine.
If I reboot into Recovery Mode and use Disk Utility, is there a way I can delete and then recreate all of the disk configuration?