To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.
How to reset an iPad to its factory settings if a simple restart doesn't solve your technical issues
You can reset an iPad to its factory settings if you're experiencing significant problems with it or are planning to sell it ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results
Feedback