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.
-
Modded TWRP (new method)
-
gpt_both0.bin (old method)
fastboot flash recovery path\to\moddedtwrp.img reboot recovery
adb shell restore
In case the new one didn't work
Replace
path\to\gpt_both0.bin
with the path to the gpt_both0.bin file.
fastboot flash partition:0 path\to\gpt_both0.bin
To avoid a bootloop and restore FS size
fastboot -w