You dont have to boot into windows, you can wipe the drive and reinstall direct from the windows installation software.
If you have a OEM computer (Dell, HP, etc) then you likely have a recovery partition that will do all of this for you.
Otherwise (if you dont already have a CD/USB of Windows 10) you will need to download a copy of the windows media creation tool on another computer and then save the file to preferably a USB flash drive. Then boot broken computer from the flash drive and install windows.
https://www.howtogeek.com/224342/how-to-clean-install-windows-10/