This article explains how to reset your Xbox One to factory settings. You can reset the console to its default state, like new, or you can simply reset all settings, keeping your games and data. You also have the option to reset using a USB flash drive.
The first step in resetting an Xbox One is to open the main menu. There are two ways to do this:
Hold the d-pad until you reach the gear icon.
Press the A button to select the gear icon.