Boot into Recovery Mode, Internet Recovery Mode, or bootable macOS USB installer, then launch Disk Utility to erase the whole physical drive. How you do this depends on the version of macOS you are installing.
If you are booting the macOS 10.11 to 10.13 installer, then select the physical drive and erase it as GUID partition and MacOS Extended (Journaled). If you are booting the macOS 10.13 installer you will need to click "View" within Disk Utility and select "Show All Devices" so that the physical drive appears on the left pane of Disk Utility.
If you are booting a macOS 10.6 to 10.10 installer, then you will need to partition & format the physical drive using the instructions in this article:
https://www.owcdigital.com/assets/support/support-formatting-and-migration/Mac_Formatting_6-10.pdf