There are plenty of tutorials for rooting a phone, but not as many show you how to unroot. Try these methods to get back to stock software!
Rooting your device can give you a lot more control over it, but it also will usually void your warranty and make repairs a hassle. Rooting also makes installing OTA (over-the-air) updates more difficult. Luckily, you can quickly unroot most devices with a few simple steps.
Unrooting is the process of restoring an Android device to its default settings, usually involving a user acquiring superuser privileges and root access to their smartphone's operating system in order to make custom tweaks. Unrooting might be desirable if you plan to pass on a device to another user.
You can unroot your phone using an option in the SuperSU app, which will remove root and replace Android's stock recovery. This is detailed in the first section of this guide.