How to reset a tablet to its factory settings
Go to Settings >System > Reset options> Factory reset to erase all data.
A factory reset will erase all data from the storage space of your device, including:
1.Your accounts
2.App data and system settings
3.Installed apps, music files, photos, and all files in the internal storage
*Make sure to back up your data before a factory reset.