How to Factory Reset Your Xbox One
Before you sell your Xbox One or pass it on to someone else, you should perform a factory reset. This wipes all your personal data. Whoever gets the Xbox One will have to go through the first-time setup process once again, signing in with their own Microsoft account.