To reset the device to factory defaults, turn it off, then press Volume + and the Power button until the recovery menu appears. Select Wipe Data/Factory Reset and reboot the device. Wait a few minutes, then you can use it normally, but your settings and custom installed 3rd party applications will be wiped.