A completely fresh-from-scratch Mac is the best way to do this. If you leave behind anything that needs to be logged into with a password, that buyer will have to track you down and get your password to change ownership. It's a security and privacy thing for you, but it's also important for the buyer. If you're about to sell your old Mac, the one thing you don't want to do is to give away the data you've been storing on it all these years.