The process is pretty simple just login to google.com/android/devicemanager, select the device in question from your list of linked devices. And click on the erase data. This option will put your phone in a factory setting. This will obviously remove the screen lock as well, but the only drawback is that you end up losing your phone data as well along with the password.
A locked android phone does not only leaves you without any access to the outside world but also blocks you from the data inside your phone. A scenario like this is mostly ghastly, and the last rescue we think is to put the phone on factory reset and lose all the data of the phone. What if there is a way to unlock an android mobile without losing the data? Considering that we are listing few methods to save your data while unlocking your android phone