how to return to factory settings
How to return to factory settings
Mac mini, iOS 9.3.1
How to return to factory settings
Mac mini, iOS 9.3.1
First of all, save all the files you want to keep (photos, documents etc.) on a separate drive or in the cloud. Make sure you are connected to the Internet. After that, follow these steps:
Apples knowledgebase on what to do before selling your mac is essentially restoring it to a out-of-the-box state.
What to do before selling or giving away your Mac - Apple Support
how to return to factory settings