iOS 12
Sell or give away your iPad
Before you sell or give away your iPad, see the Apple Support article What to do before you sell or give away your iPhone, iPad, or iPod touch, and be sure to perform the following tasks:
Back up iPad using iCloud or iTunes. If you replace one iPad with another, you can use the setup assistant to restore the backup to your new iPad.
Erase all content and settings that contain personal information.