A Windows computer is required to execute the commands. Required Downloads

With the bootloader unlocked, you can now write custom partitions to the device memory. Turn off your phone completely.

A: Boot back to TWRP (Vol Up + Power), perform a Factory Reset (Wipe data/cache), and re-flash the stock boot image or a custom ROM.