How to factory reset android using adb I am trying to factory data reset my Oppo neo 7 (Android 5.1) using adb shell. Any ways i can try and links to adb shell? thanks
You can try the following commands:

To enter the fastboot mode:
adb reboot bootloader

Check whether the mobile phone is also in fastboot mode:
fastboot devices

To delete the data:
fastboot erase userdata

To delete cache:
fastboot erase cache

Source and more detailed instructions click here.