How do I factory reset my Mac without password?
First you’ll need to turn off your Mac. Then press the power button and immediately hold down the Control and R keys until you see the Apple logo or spinning globe icon. Release the keys and shortly afterwards you should see the macOS Utilities window appear.
How do I wipe my macbook without logging in?
Boot into Recovery Mode by holding Cmd + R when you’re powering on the machine. At the menu that you will see, go to Disk Utility, select the lowest hard drive partition you can see, then click Erase.