Long story short:
-get the right latest twrp for your phone
-get adb and fastboot + adb drivers
-boot in twrp using fastboot mode and a pc. No need to install twrp on the phone, just use boot command from the pc with the phone in fastboot mode.
-format data using twrp special function for this...