Unable to log in Apple ID "iPhone is locked owner"
I have an iPhone 7 which i have previously gifted to my ex girlfriend, i have gotten the phone back since, but her apple id is stuck on the phone. As i was informed the account was deleted since, but it still requires its password to factory reset or do anything like that. I have tried every option to reset none of them worked, cant do factory reset because the location is enabled and it needs password also. Is there a way to work around this?
[Re-Titled by Moderator]
Earlier iPhone models