How do I reset the Phone to factory settings?

Note: Performing a factory reset will clear all applications, contacts, text messages and other data in your phone, which can't be restored after the operation. Please be sure to back up important data and migrate chat history from third-party applications such as WhatsApp in advance. The path is as follows: Settings > System > Reset options > Erase all data (factory reset) To keep your personal information safe, you will need to verify your lock screen / Google account password if your phone has a lock screen password or is logged in with a Google account. Ensure you have good internet connection to verify the account password and then follow the on-screen prompts.