Back up your data
Sign out of iCloud
Sign out of iMessage
Sign out of FaceTime
Open System Settings
Go to General
Click Transfer or Reset
Click Erase All Content and Settings
Enter your Mac password
Follow the on-screen prompts
Confirm the erase
Wait for the Mac to restart
Set up the Mac as new or shut it down for the next user
