Unjailbreak how to?

If I want to unjailbreak and update iOS software how do I go about doing that? Do I just go to settings and update software and that's it??
plug into iTunes and click Restore

when given the option towards the end select Set up as New iPhone. you could have a corrupted backup and technically not be a "clean install"
I cant do it wirelessly?

Sent from my Kindle Fire using Tapatalk 2
i do not believe you can on a Restore
restores are a wired to iTunes thing.
Ok. Thank you!

Sent from my Kindle Fire using Tapatalk 2
Restore your device, but do not restore from a backup. there WILL be lingering jailbreak-related files in your backup from within iTunes that will take up space. I noticed this after I restored my iPhone 4 two years ago, then rejailbroke it and only installed iFile (i believe that was the name) and noticed that a lot of my winterboard themes were still on my iP4. I never reinstalled any of these themes after i rejailbroke, and i did a full DFU restore with iTunes.

Doing a clean restore without using a backup gave me a proper, clean install of iOS and the file system.

Original thread: https://forums.imore.com/threads/unjailbreak-how-to.239774/