If you want to uninstall windows this is used instead of deleting partitions manually to avoid human error + writing a whole dedicated guide to just uninstalling.
If you want to relock your bootloader you'll need your partition table to be stock.
-
gpt_both0.bin FILE NEEDED
Important
This guide will likely not work, it needs to be updated
Hold the volume down + power button while the phone is turned off, or run the following command while it is booted
adb reboot bootloader
Replace
path\to\gpt_both0.bin
with the path to the gpt_both0.bin file.
fastboot flash partition:0 path\to\gpt_both0.bin
fastboot -w
Note
If erasing userdata fails, reboot to recovery and wipe all data there instead