Set El Capitan to factory status
Set ElCapitan iMac to factory status
Set ElCapitan iMac to factory status
Follow the instructions in this Support Topic:
What to do before you sell or give away your Mac - Apple Support
Follow the instructions in this Support Topic:
What to do before you sell or give away your Mac - Apple Support
Set El Capitan to factory status