If you are using a jailbroken iPhone and want to unjailbreak for any reason this is the guide for you.
For this to work you will need a working uncover app. If you dont then you can sideload it with altstore.
Open UNCOVER app and click on the setting button on top right corner.
Then look for restore rootFS and enable it.
Click on Done after enabling restore rootFs.
You will be navigated back to the mainscreen of UNCOVER app.
Click on restore rootFS button and wait for the process to complete.
Once its done you will get a prompt telling restoration is completed. Click okay.
Now your iPhone will reboot into non jailbroken state.
Enjoy.
Wow thank you so much for the informative article