kirilltrader Hi,
Flashing is not solution to clean frp and mi account.
Also, FYI since miui 10, patch persist is no longer solutiontoo,
so newest miui will more little possibility to unlock or clear account by previous methode.
You may disable miaccount service in system via Special Task in ADB mode by UFi Android toolbox for newest device.