Assuming your internal drive is **not** a Fusion drive, the following Terminal application command should setup your Internal drive for an installation of macOS. You will need to run this command from macOS internet Recovery. Or, if you are booted from an external drive.


    diskutil  partitionDisk  disk0  1  GPT  JHFS+  "Macintosh HD"  R