Clear data, Means Reset mac to factory setting very essential step before sell your used Mac running on OS X EI Capitan, at here. But same process you have to follow on an older OS X Version (Yosemite, Mavericks, Lion). No any single change for iMac, MacBook, MacBook Pro, MacBook Air and Mac Mini.
Without any third party Mac cleaner or Factory reset software, you can erase data, Settings and Saved History on App store, Browsers, Notes delete completely with Mac to factory setting.
Note: Factory reset make your Mac fresh like new, if you are tolerating with freeze, Corrupted OS X, Auto close apps, Battery Drains and Network Problem.
Steps for Reset Mac to Factory setting or Clean Mac for Sell
Step 1: Restart your Mac OS X, That you want factory reset. After a second, Press Command + R from your keyboard, until you will see OS X Utility window on Screen.
Step 2: Next, Select Disk Utility and Click on continue button.
Step 3: Choose you startup disk and erase that with Erase option. It will erase your drive completely. Mind that your disk format type must be “Mac OS Extended (Journaled)“.
Step 4: Set your disk startup name and again go with Erase button.
Last, Complete factory reset you need to install latest OS X, by reinstalling from start up screen.
When your Mac turn on, Without OS X installed your screen must be disk utility.
There, You have to go with Re install OS X, then Continue.
Follow on screen easy instruction for OS X install after Reset mac to factory setting. I am sure about that, You never stuck with stop process in between. However you got any problem check your internet connectivity. All is fine, Then share with me on comment section.