It's simple and you won't lose any data
How to Remove Ubuntu from Dualboot Windows 10 | UEFI | Step by Step (2021)
What do you do if you have Ubuntu installed on your PC alongside Windows, but you no longer want to use Linux? You now have a Linux partition on your hard drive taking up space that you want to use for your Windows folders and files.
This article will show you how to safely remove Ubuntu in Windows 10 dual boot without losing any data or applications.
The first part of this process is to remove the Linux operating system. Keep in mind that this will also remove all of your Ubuntu data and system files. Make sure to save anything you don’t want to remove somewhere else. The second part of the process is to change the Windows bootloader.