The tool will wipe the cache and user data. Once finished, disconnect and reboot the phone; the lock screen will be gone. Official Alternatives (No Flashing Required)
Move your downloaded FTF file into the firmwares folder inside the Flashtool directory. Flash Mode: Turn off your device Download C2305 Xperia lock remove ftf
The official Sony Support tool features a "Software Repair" option that can reset the device and remove locks. The tool will wipe the cache and user data
When prompted, hold the button and connect the phone to your PC via USB. Release when the tool detects the device in "Flash Mode". Flash Mode: Turn off your device The official
If the device is linked to a Google account and has internet access, you can remotely erase it via the Google Find My Device portal.
An FTF file is a packaged firmware image specifically for Sony Xperia devices. When you use Flashtool to flash this file, it essentially overwrites the existing system software, which effectively removes user-set locks like patterns and PINs.
You will need a PC, a micro-USB cable, the software, and the correct firmware file . How to Remove the Lock Using FTF