Select System, Advanced, Reset settings and Delete all data from the Settings menu (factory reset). Android will then display a summary of the data you're about to delete. To begin the reset procedure, tap Erase all data, enter the lock screen PIN code, and then tap Erase all data again.