A factory restore erases the information and settings on your iPhone, iPad, or iPod and installs the latest version of iOS, iPadOS, or iPod software.
Important Note for FirstStar Program iPads
If you backup your iPad and restore the backup, it will restore the FirstStar restrictions. You must backup any files you wish to keep to the cloud before performing a factory reset. This process will only work for FirstStar graduates that have arranged to have their iPad released by contacting the FirstStar office.
Get your device ready
Make sure your Mac or PC is updated. If you're using iTunes, make sure you have the latest version. If you can't access a computer and your device still works, you can erase and restore your device without a computer.
If you want to save the information on your iPhone, iPad, or iPod, make a backup.
Go to Settings > [your name] > iCloud, tap Find My iPhone, then turn it off. For an unresponsive device or one that won't turn on, learn what to do. If you forgot your passcode, get help.
...