Do this to perform factory reset:
Go to Settings > Backup & reset > Factory Data Reset
Note that if you do this, all data will be erased from device memory, including your Google account, personal information and settings, system application data, and downloaded applications. source