To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.
You can reset an iPad to its factory settings if you're experiencing significant problems with it or are planning to sell it ...