SYSTEM NOTICE: Just a heads up, we are doing routine system maintenance on the site. Uploads will be disabled during this time. The maintenance may take up to 24 hours. Thank you for your understanding and patience.
step by step :
now you need to connect the device with PC using a USB cable and reboot it into fastboot mode by giving the following command :
adb reboot bootloader
fastboot devices
fastboot erase persist
fastboot flash persist persist.img
fastboot reboot