You can boot your Mac into Internet Recovery mode and erase the internal drive to reinstall macOS by following these steps:
**Note:** Before proceeding, ensure you have a stable internet connection and have backed up any important data because erasing the internal drive will delete all the data on it.
1. **Shut down your Mac:** Click the Apple menu in the top-left corner of your screen and choose "Shut Down."
2. **Start in Internet Recovery Mode:** To do this, press and hold the following keys simultaneously:
- Option (Alt) + Command + R
Keep holding these keys until you see a globe or spinning globe icon on the screen. This indicates that your Mac is booting into Internet Recovery mode.
3. **Connecting to the Internet:** Your Mac will need to connect to the internet to download the necessary recovery tools. You may be prompted to select your Wi-Fi network and enter the password if your Mac isn't already connected.
4. **Access Disk Utility:**
- Once Internet Recovery mode is loaded, you'll see the "macOS Utilities" window.
- Select "Disk Utility" and click "Continue."
5. **Erase the Internal Drive:**
- In Disk Utility, select your internal drive (usually named "Macintosh HD" or something similar) from the list on the left.
- Click the "Erase" button in the toolbar at the top.
- Choose a name for your drive (you can keep the default name if you prefer).
- Select a format (usually "APFS" for macOS 10.13 or later, or "Mac OS Extended (Journaled)" for earlier versions).
- Click the "Erase" button to confirm and proceed.
6. **Reinstall macOS:**
- After erasing the internal drive, close Disk Utility.
- In the "macOS Utilities" window, select "Reinstall macOS" and click "Continue."
- Follow the on-screen instructions to reinstall macOS. You'll need to select the drive you just erased as the destination.
7. **Complete the Installation:** Once the macOS installation is complete, follow the setup instructions to configure your Mac as you desire. You can restore your files and settings from a backup if you have one.