Assuming your internal drive is not a Fusion drive, the following Terminal application command should setup your Internalinternal drive for an installation of macOS. You will need to run this command from macOS internetInternet Recovery. Or, if you are booted from an external drive.
diskutil partitionDisk disk0 1 GPT JHFS+ "Macintosh HD" R