To wipe your iPad before selling, first back up your data via iCloud or a computer. Then, go to Settings > name, scroll down, and tap Sign Out to remove your Apple ID and disable Activation Lock. Next, head to Settings > General > Transfer or Reset iPad > Erase All Content and Settings. Confirm the reset and let the device restart. It will return to the setup screen, ready for the new owner.