To factory reset your Xbox: select Settings > System > Console Info & Updates > Reset Console. Then, choose the Reset and Remove Everything option. This will completely erase all of your data and reset your Xbox back to its factory settings. To factory reset your PlayStation: Go to Settings > Initialization > Initialize PS4. Then, select either Full or Quick. Next, select Initialize. Follow by entering your password to confirm the process (if required). Finally, press the 'OK' button to begin the reset process.