T
The Practical Guide to Mac Security

Before you sell or give away your Mac, you should log out of all of your accounts, wipe the hard drive and re-install the original operating system that came with your Mac. You can do this by booting in a special Internet Recovery mode.