if you have a broken touchscreen/broken lcd/broken button volume or power, but u need to factor reset or wipe your data. You can use this command from a computer :


adb shell wipe data
adb reboot


adb reboot bootloader
# check if device available
fastboot devices
# remove user data
fastboot erase userdata
# remove cache
fastboot erase cache
# reboot device
fastboot reboot