Go to Settings > System > Reset options > Erase all data (factory reset) > Erase all data. After the erasing process, set up ...
If your Android phone's power or volume buttons don't work anymore, you can use a few software-based solutions to turn off or ...