You cannot reformat the startup drive unless you boot from the Recovery HD, if one is present and working. Otherwise, you need to boot from some other device, like a bootable USB flash drive installer. For the former:
Install El Capitan or Later from Scratch
If possible, back up your files.
- Restart the computer. Immediately, at or before the chime, hold down the Command and R keys until the Apple logo and progress bar appear. Wait until the Utility Menu appears.
- Select Disk Utility from the Utility Menu and click on the Continue button.
- When Disk Utility loads select the target drive (out-dented entry w/type and size info) from the Device list.
- Click on the Erase button in Disk Utility's toolbar. A panel will drop down.
- Set the partition scheme to GUID.
- Set the Format type to APFS (SSDs only) or Mac OS Extended (Journaled.)
- Click on the Apply button, then wait for the Done button to activate and click on it.
- Quit Disk Utility and return to the Utility Menu.
- Select Install OS X and click on the Continue button.
Note that your computer has an SSD, not a HDD, so it needs to be formatted APFS, if you are using Catalina. To install Sierra, you need to boot from a bootable USB flash drive installer.
Bootable USB Installers for OS X Mavericks, Yosemite, El Capitan, and Sierra
First, review this introductory article: Create a bootable installer for macOS. Second, read this How To outline for creating a bootable macOS installer. Simply use the Terminal command by copying and pasting the command line for the version of macOS from the list below. You will need an 8GB or larger USB flash drive that has been partitioned and formatted for use with OS X as well as an installer for the desired macOS version that you have previously downloaded from the App Store.
Drive Partition and Format
- Open Disk Utility in the Utilities' folder.
- After Disk Utility loads select the drive (out-dented entry with the w/type and size info) from the side list.
- Click on the Erase button in the Disk Utility toolbar. Name the drive, "MyVolume". <---- IMPORTANT!
- In the drop down panel set the partition scheme to GUID. Set the Format type to Mac OS Extended (Journaled.)
- Click on the Apply button and wait for the Done button to activate. When it does click on it.
- Quit Disk Utility.
Create Installer
Open the Terminal in the Utilities' folder. Paste that entire command line from below at the Terminal's prompt:
Command for macOS Sierra:
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ Sierra.app
Press RETURN. You will be asked for your admin password. It will not echo to the Terminal window. Then press RETURN again. Wait for the return of the Terminal prompt signifying the process has completed. It takes quite some time to finish. Be patient.
The bootable installer can be used to install the selected version of macOS. Shut the computer down. Insert your flash drive into a USB port. Start the computer like so:
Boot Using OPTION key
- Restart the computer.
- Immediately after the chime press and hold down the "OPTION" key.
- Release the key when the Boot Manager screen appears.
- Select the disk icon for the USB flash drive.
- Click on the arrow button under the disk icon.