Uninstall Endless and repair Windows 10

hello i would like to uninstall endless and reinstall windows 10 because i accdiently destroyed windows 10 using the ubuntu installer so i cant fid the disk to install win 7 so i need to uninstall. so i was wondering if i did this command to unninstall endless: sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume but does this reinstall windows 10 or what? please reply im begging you. also the command was by apple. i will be waiting for a reply once i have sent this message. have a lovely day endless team. and aslo let people install apps on endless. bye!!