Recently we posted a guide on how to root your Motorola Moto G . However today we’re gonna show you how to unroot your Moto G in case your experiencing issues with the rooted version and you want to return it back to the stock firmware . Unrooting your device will remove all the mods, hacks and special apps restricted to rooted devices will be removed and return your device to the stock firmware .
BEFORE WE BEGIN
Unrooting your device will remove all the data on your device so make sure you take a back up before beginning the process .
Note : We will not be held responsible if you’re device is bricked/damaged during the process . Read the instructions carefully
Download and install Motorola drivers here 
Download the stock firmware here 
Download Motorola Fastboot  (Attached at the end of the first post in the given link)
Download Minimal ADB and fastboot 
HOW TO UNROOT YOUR MOTOROLA MOTO G DEVICE
Step 1 : After downloading the stock firmware and fastboot , extract them to your desktop . Note : Extract fast boot to the same folder where you extracted the stock firmware
Step 2 : Turn on the developer mode by going to Settings -> About Phone and tapping 7 times on build number
Step 3 : Turn on USB debugging by going to Settings -> Developer Options -> USB Debugging
Step 4 : Once done , plug in your device to your PC via USB cable
Step 5 : Open Minimal ADB and fastboot you downloaded earlier and type in “adb reboot-bootloader” . This will reboot your device into bootloader mode
Step 6 : Open Command Prompt on your PC . If you cant find it , search for it in the start menu search bar
Step 7 : In command prompt , browse to the folder you extracted the firmware . This is an example of how you can browse it :
Step 8 : Next enter the following commands into command prompt one by one and check if it returns [OKAY] :
mfastboot flash partition gpt.bin mfastboot flash motoboot motoboot.img mfastboot flash logo logo.bin mfastboot flash boot boot.img mfastboot flash recovery recovery.img mfastboot flash system system.img_sparsechunk.0 mfastboot flash system system.img_sparsechunk.1 mfastboot flash system system.img_sparsechunk.2 mfastboot flash modem NON-HLOS.bin mfastboot erase modemst1 mfastboot erase modemst2 mfastboot flash fsg fsg.mbn mfastboot erase cache mfastboot erase userdata mfastboot reboot
You’re device will reboot after the process is completed . Your Moto G is now unrooted and back to the stock firmware .
If your facing performance issues with your Moto G after rooting then follow the above steps to unroot your Moto G and return it back to the stock firmware . Make sure you take a backup before unrooting as all the data on your phone will be wiped.
[via XDA ]