Hi, welcome to Android Forums.
The following is an extract from the HTC One user manual :-
Resetting HTC One (Hard reset)
If HTC One has a persistent problem that cannot be solved, you can perform a factory reset (also called a hard reset or master reset). A factory reset reverts the phone back to its initial state