The phone will restart as if brand new, with no accounts or personal data. If the Remove account option is greyed out or not responding, try these solutions:
Confirm with Reset phone again.
Tap your profile picture or initial in the top-right corner.