I forgot my password, PIN, or pattern
For security reasons, the only way that you can reset your screen lock without knowing the password, PIN, or pattern is to delete all of your device data and set up the device again.
You can typically do this by entering your password, PIN, or pattern incorrectly ten times. Or, if you have a remote device management app installed on your device, such as the Android™ Device Manager, you can log in to the website and delete your device data.
If you add your Google™ account to your device, the factory reset protection feature may turn on. To set up your device again, you must add the same Google™ account. If you don’t use the same Google™ account, you can’t complete the setup process.