Final answer:
To factory reset a MacBook Pro, restart the computer and hold down the Command and R keys until the macOS Utilities window appears. From there, you can erase the startup disk using Disk Utility and then reinstall macOS.
Step-by-step explanation:
- Click on the Apple menu at the top left corner of the screen and select 'Restart'.
- As the computer is restarting, hold down the 'Command' and 'R' keys simultaneously until the macOS Utilities window appears.
- Select 'Disk Utility' from the macOS Utilities window, then click 'Continue'.
- In Disk Utility, select your Mac's startup disk and click on the 'Erase' tab.
- Choose the format for the disk (usually 'Mac OS Extended (Journaled)'), give it a name, and click 'Erase'.
- Once the disk is erased, quit Disk Utility and return to the macOS Utilities window. Select 'Reinstall macOS' and follow the on-screen instructions to complete the factory reset.