If you give your console to a friend or troubleshoot a technical issue, you just need to give your Xbox One a new start. Fortunately, Microsoft makes this very easy to do, whether you want to keep your games and apps installed, or start with a clean slate. The same process applies to all versions of the console, whether you have the original or the backed up Xbox One X, with a slight difference noted when relevant.
Note that even if you choose to keep your games and apps installed, if you perform a factory reset, you still remove all personal files and associations from the console, including saved games, achievements, settings, and accounts. Everything that will be stored in the cloud if your console is synchronized with Xbox Live, which happens automatically when connected to the internet, be sure to go online, if possible, before you start the recovery.
When you're ready, continue with our guide on how to factory-set an Xbox One. If for technical reasons you cannot see the screen or go to the Settings menu to perform the following steps, run further and we tell you how to boot it with an external USB device. Note that you need access to a Windows computer to do so.
Performing a factory reset from the dashboard
Step 2: Navigate to the System menu (rightmost switch), and select "Settings."
Step 3: Select "System" and then "Console Information".
Step 4: Select "Reset console."
At this time you have the option to either Reset and delete everything or Reset and keep my g ames & apps (or cancel and back if you're not ready).
Please note that even if you keep your games and apps, all your personal data will still be wiped from the system, so be sure to synchronize with the Xbox Live or export your settings manually if you don't want to lose them. Once you have selected your desired way to restore, the console will continue to delete content, which may take several minutes.