One M7 – Factory Reset
The following steps are intended for the HTC One M7 running any Android software.
Tap the All Apps icon.
Tap Backup & Reset.
Tap Reset Phone.
Tap No Thanks.
(If you have recently did a backup on your device)
Once the phone has powered back on, you will need to set it up for the first time.