Default [Q] Remove Lockscreen Password

Hello Guys, is it possible to remove the Lockscreen Password without losing the Data on the Phone? I saw that you need to do a factory reset, but i dont want to lose the things which are on the phone. So is it possible to remove the Lockscreen Password just with Reflashing the Rom ?
Thanks