If you decide that you no longer need Ubuntu, it is better to uninstall it, as it takes up precious disk space. Removing Ubuntu is easier if there is only one operating system installed on the computer. If you still have Windows, then everything is a little more complicated. We will tell you how to proceed in both of these cases.
Steps
Method 1 of 2: How to uninstall Ubuntu if you have Windows

Step 1. Insert the Windows installation disc into the drive
You can use a system repair disc instead. If you don't have one, you can create one.

Step 2. Boot from disk
To do this, change the boot priority settings (to boot from disk) in the BIOS. To do this, press the F2 button, or F10, or F12, or Del when starting the computer. After selecting the boot priority, save your changes and restart your computer.

Step 3. Open a command prompt from the installation disc menu
Select the "Repair your computer" option. A command prompt will open.

Step 4. Correct the boot record
When you enter the command below, when you turn on the computer, the system will not prompt you to select an operating system. Enter the command:
bootrec / fixmbr

Step 5. Restart your computer
There should be no system selection options, the Windows operating system should boot immediately.

Step 6. Go to the Disk Management menu
It's time to uninstall Ubuntu and free up some disk space. Open the Start menu, right-click on the Computer tab. Select "Computer Management". Go to the Disk Management tab.
- In Windows 8, press the Windows key + X keyboard shortcut and select Disk Management.
-
Erase Ubuntu Step 6

Step 7. Remove the Ubuntu partition
Right-click the Ubuntu partition, select Uninstall. Make sure to delete the correct section. The section will turn into unallocated space. Right-click on the Windows partition and select the "Extend Partition" option. Add free space to the section.
Method 2 of 2: How to uninstall Ubuntu on a single operating system computer

Step 1. Insert the disc with the operating system you want to install
Reboot your computer by booting from disk. Read about how to do this in Step 2 of the first section.

Step 2. Remove the Ubuntu partition
When the process of installing the new system begins, a window with partitions will appear. Select the Ubuntu partition and delete it.

Step 3. Proceed with the installation of the system
After deleting the partition, the Ubuntu system will be completely removed from the computer. Install a new operating system.
- If you do not install the operating system, you will not be able to use the computer.
-
Erase Ubuntu Step 10