If you forgot the passcode to your iPad, or the device has been disabled, you can restore and unlock it with a computer or the Find My Website or app.
But even when your iPhone or iPad is locked down, there are still some apps and device ... With Erase Data turned on, your device will automatically factory reset itself after someone incorrectly ...