If your Apple iPad is. It says "iPad Unavailable" or "Security Lockout" you can do a factory reset using the method that Apple says is official. This will get rid of all the data on the Apple iPad, including the passcode that you forgot.
First you need to turn the Apple iPad all the way. Then you need to plug it into a Mac or a Windows PC using a USB cable. If you have a Mac that is running macOS Catalina or something you need to open Finder. If you have a Windows PC or a Mac that's older you need to open iTunes. How to factory reset ipad
Next you need to put the Apple iPad into something called Recovery Mode. If your Apple iPad does not have a Home button you need to press the Volume Up button. Then let it go then press the Volume Down button and let it go then press and hold the Top button until you see the Recovery Mode screen on the Apple iPad. If your Apple iPad has a Home button you need to press and hold the Home button and the Top button at the time until you see the Recovery Mode screen on the Apple iPad.
When your computer sees the Apple iPad you need to choose Restore, not Update. The computer will download the version of iPadOS and put it on the Apple iPad and it will get rid of everything that is on the Apple iPad. After the reset is done the Apple iPad will turn back on. Go to the setup screen.
To make the Apple iPad work again you need to put in the Apple ID and password that you used to set up the Apple iPad so you can get rid of the Activation Lock, on the Apple iPad.