For those of you who need to unroot your Galaxy Note 4, perhaps because you need to return your phone for warranty, need to get out of a nasty bootloop, or simply tired of using custom ROMs and want to run stock, you can do so easily by re-installing the stock firmware.
Now, unrooting with stock firmware does not erase anything if you are coming from stock ROM or firmware, it will simply update you to the latest stock firmware you flash. However, if coming from custom ROM, you may need to do a factory reset. Doing a factory reset in stock recovery (after unrooting) WILL ERASE EVERYTHING on your phone. You may have to do that so if you are coming from custom ROM, BACKUP EVERYTHING on your phone before following the guide.