All of these steps can be done from Windows, you can do the following to completely remove Ubuntu from Windows dual-boot
First, let’s use Windows partition manager and remove the Linux partition, you can extend it to the main partition again if you want.
Then, open the Windows Prompt and enter the following:
# Open command prompt with administrator permission bootsect /nt60 c: /mbr # Remove the ubuntu partition mountvol S: /S S: cd .\EFI\ dir rd /S Ubuntu