Hi, everyone welcome to XaHertz so today
I am going to show you how to uninstall the linux operating system completely from a PC
Which has UEFI Windows/Linux dual boot. In my PC, Windows 10 and Fedora is installed in a UEFI dual boot
So let's start. First open disk management
and
Then delete your linux partitions from your disk
It's easy to identify your linux partitions because they don't have drive letters and are larger than 1 gigabyte
Merge the free space obtained with another partition to get it back for use
Now your linux partitions are deleted but only doing this will not completely uninstall the linux from your PC
If you will now reboot your PC, you will get this screen. Why? Because you have deleted Linux partitions
But grub2 boot loader is still present in your PC's EFI system partition
So now we are going to remove grub2 boot loader from your PCs EFI system partition
For this, first launch command prompt as administrator
And then type 'diskpart' to start the diskpart utility
Then type 'list disk' to list all disks connected to your PC
There is only one disk in my PC
Which is disk 0. You may have multiple disks, so then you will need to identify your disk which has the EFI system partition.
Then type 'select disk'
And then your disk number. In my case it is 0. Then
Type 'list partition' to list all partitions on your disk
Then identify which partition is your EFI system partition.
Usually it is the second partition on your disk. Then type select partition
And then your partition number. In my case, it is 2.
Then type 'assign letter=' and then any letter you want.
For now, lets use X.
Then after this you will see a 100 MB partition in Windows Explorer that is your EFI system partition
But we don't need to do anything here, so let's get back to the command prompt. Now type 'exit' to close diskpart
Now type X, or the letter you have used in assign command and then a colon
Now type 'dir' to see the contents of drive X
Now we have to change directory to EFI folder. For this, type 'cd efi'
Again, type 'dir' to see the contents of the EFI folder
Now here you will see a folder named of your linux that you have installed like Ubuntu, Debian, Fedora, etc.
We need to delete this folder for this type 'rd  /s'
Type 'Y' to confirm deletion
Again, type 'dir' to ensure that the folder is deleted
Now you have successfully uninstalled Linux from your PC
And don't worry about that EFI system partition that we have mounted: after you restart your PC, it will be automatically unmounted.
I have restarted my PC and see that EFI system partition is not mounted here.
By this way, you can uninstall almost any linux from your UEFI Windows/Linux dual boot system
That's all for now. Thanks a lot for watching if you find this video helpful,
then don't forget to like. You can also try watching other videos from our channel if you want.
Subscribe to get new updates from our channel and once again, thanks for watching
