Back up your iPad if you want to keep your data
Open Settings
Tap General
Tap Transfer or Reset iPad
Tap Erase All Content and Settings
Enter your passcode or Apple ID password if prompted
Confirm the erase
Wait for the iPad to restart and restore to factory settings
