Erase iPad
When you delete data, it’s no longer accessible through the iPad interface, but it isn’t erased from iPad storage. To remove all of your content and settings from storage, erase iPad. For example, erase iPad before you sell it or give it away. If you want to save your content and settings, back up iPad before erasing it.
You can erase iPad from Settings . If you’re unable to open Settings, you can use a computer to erase iPad.
Wipe all content and settings from iPad
Go to Settings
> General > Transfer or Reset iPad.
If you’re erasing your iPad because you’re replacing it with a new iPad that you have on hand, you can use extra free storage in iCloud to move your apps and data to the new device. Tap Get Started, follow the onscreen instructions, then return to Settings > General > Transfer or Reset iPad.
Tap Erase All Content and Settings.
When iPad restarts with all content and settings erased, you have the option to set up iPad as new or restore it from a backup. See Turn on and set up iPad.
Note: If you’re asked to enter your passcode and you’ve forgotten it, see Reset the passcode. If you’re asked to enter your Apple ID password and you’ve forgotten it, see the Recover your Apple ID website.
Use a computer to wipe all content and settings from iPad
You can use a Mac or Windows PC to erase all data and settings from your iPad, restore iPad to factory settings, and install the latest version of iPadOS. For example, if you can’t open Settings on iPad, you can use this approach to restore iPad to factory settings.
Before iPad is erased, you have the option to back it up. If you make a backup, you can use the backup to restore your data and settings on your iPad or on a new device. See Restore iPad from a computer backup.
Do one of the following:
On a Mac: In the Finder sidebar, select your iPad, click General at the top of the window, then click Restore iPad.
To use the Finder to restore iPad to factory settings, macOS 10.15 or later is required. With earlier versions of macOS, use iTunes to restore iPad.
On a Windows PC: Install or update to the latest version of iTunes on your PC (see the Apple Support article Update to the latest version of iTunes). Open iTunes, click the iPad button near the top left of the iTunes window, click Summary, then click Restore iPad.
Follow the onscreen instructions.
See the Apple Support article If you can’t update or restore your iPad.