Perform a soft reset by holding down the power button on top of the device for about 15 seconds until it powers off. Press the button again to turn it back on.
Perform a factory reset by opening the Home menu and selecting the System Settings page with the gear icon. Scroll down, and click the System page at the bottom left. Scroll through the System page, and click on the Formatting Options page at the bottom right. Click on the Initialize Console button, and then follow the instructions to delete all your console’s data.