Redmi Note 7 factory reset via PC
If you're on Stock Recovery, 
Reboot into recovery and choose Wipe Data(Factory Reset).

If you're on TWRP Recovery, 
Reboot into recovery and select Wipe -> Swipe to Factory Reset.

EDIT: The FRP lock usually gets nuked when flashed under EDL mode, refer to your device forums about booting your phone to EDL mode, usually this will require jumping contacts in the motherboard while connecting phone to the PC, be careful with that.