I've rooted my RP2 about 5 months ago. 3 of those months the root has been fine I've had no problems until suddenly my GPS stopped working properly, then I was like cool whatever I can deal with it. Then after awhile my camera started acting up and I can't use it at all. I dunno what I downloaded or installed to cause that. But I've been trying to figure it out for 2 months and decided to ask here if anyone knows how to completely wipe everything via ADB because I'm unrooted currently and also tried Factory Reset
You can get all of the files you need to wipe your phone completely and restore a clean untouched version of the software from Razer's Developer Portal site. All you need to do to get there is google, "Razer phone 2 factory images" and click the top link. Just above the downloads for the factory images is a link to unlock your bootloader fully and how to set up adb for the flash_all script to work correctly.
From the factory images site, you should download the latest image file for your carrier of phone. I.e. if you have the global versionof the RP2, download the MR1 zip file under the global images section(P-MR1-RC003-RZR-190305.3110). Everything you need to restore your phone to absolute fresh start will be in the zip file and in the provided instructions.
If the flash script in the zip keeps spitting out errors about fastboot not being a command then you need to follow the steps on Razer's site to add adb and fastboot to your PATHs variable. If it just rushes through the script and resets your phone without pushing files, don't run the flash script as administrator and if that doesn't solve it, then use the command line to reboot the phone into the bootloader with "fastboot reboot bootloader" and try again.