Back up any files you want to keep
Sign out of iCloud
Sign out of Messages
Sign out of Music and TV
Sign out of Find My Mac
Unpair Bluetooth devices if needed
Restart the Mac
Enter macOS Recovery
Open Disk Utility
Erase the startup disk
Quit Disk Utility
Choose Reinstall macOS
Follow the on-screen instructions
Set up the Mac or shut it down after reinstalling
