Passcodes are a handy way to protect the personal data on your iPad, unless you've entirely forgotten your password and are left with a very expensive device you cannot use. Fortunately, you can still wipe your iPad to its factory settings even if you have forgotten your passcode. All you have to do is connect the device to your computer, then use iTunes' software interface to initiate the factory reset process and reclaim your iPad.
Step 1:Connect your iPad to the computer with which you normally sync your tablet.
Step 2: Launch iTunes on your computer, then select your iPad under the "Devices" list in the left-hand sidebar.
Related Reading: How to wipe iPad data permanently,so that no one iPad data recovery software can restore them.
Step 3: Click on the "Summary" tab, then click the "Restore" button. This will initiate the process of resetting your iPad to factory settings.
Remember that the process of resetting your iPad to its factory settings will delete all files, everything from songs to email, you previously put on the device.