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.
fastboot boot <recovery.img>
Warning
This will wipe your Android files. Backup first if needed.
adb shell restore
adb reboot