How to unroot android Phone

how to unroot android phone and I just want to get it back to unrooted status.

You need to flash a new (official) ROM on your phone. Upgrade or factory reset phone won’t change the root status, especially if done through OTA.
What is your phone brand and model ? here is a guide, if you can’t do that leave me a message.

Unroot your Android Phone