How to Factory Reset Mac & Set Up fresh without Apple ID
First you’ll need to turn off your iMac. 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 afterward you should see the macOS Utilities window appear.