The iPad offers additional security to keep data safe if your device is stolen.
Go to Settings, then Face ID & Passcode or Touch ID & Passcode, depending on your device. Turn on Erase Data at the bottom of the menu. If someone tries to guess your passcode, all data on the device will be erased after ten unsuccessful attempts. This is a great way to ensure that potential thieves can’t access your personal data if they steal your device.
Just make sure you don’t let a small child get hold of your device and bash buttons randomly on the lock screen, or you may find all your data gone!