A friend of mine deleted the Mi account associated with his phone, and then tried to reset it. The phone is now blocked with the Mi account…

Any ideas on how to unlock the phone?