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