Open In App

Uninstall Linux completely from a PC with Windows

Last Updated : 29 Apr, 2022
Like Article

We would learn here how to completely uninstall any Linux OS from PC through Windows. This is a procedure that involves to steps-> (i) Delete Linux Partition (ii) Remove Linux OS from EFI System Partition You must be thinking what is EFI System Partition? The EFI system partition (ESP) is a partition on a storage device that is used by computers adhering to the Unified Extensible Firmware Interface (UEFI). When a computer is booted, UEFI firmware loads files stored on the ESP to start installed operating systems either windows or Linux(ubuntu/fedora/mint). Let’s get started with the uninstallation procedure-> (i) Log on to Windows OS in Admin mode. (ii) On the left-corner windows icon right click. (iii) Here you will see options like (iv) Open Disk Management (v) Delete the Partition which does not have a letter (like (C:)) or is not a NTFS partition and is greater than 1GB. (vi) Now you have successfully completed the first Step. (vii) Ubuntu/Fedora(Linux OS) is deleted but on restarting your pc you will still see the grub option so we need to uninstall Linux OS from EFI System Partition too. (viii) Now open the Command Prompt (Admin) ( shown in the options image above ). (ix) Follow these commands-> Note the line after ‘#’ is just to explain the command

> diskpart  
> list disk       # select the primary disk
> select disk 0   # disk 0 is 
> list partition   # a list of partition is opened

Note-> Check which is the system partition (example partition 1 is system partition)

> select partition 1  #select the system partition
> assign letter=x     #disk is now mounted in your explorer verify with (windows+E)
>exit    #exit from diskpart
>x:      # this would select this newly mounted disk x:
> dir  # displays content
> cd efi
>dir   #displays content

Note-> You can now see the OS check your Linux OS

>rd ubuntu /S    #if Linux os is Ubuntu
>y               #to confirm delete

>NOTE:- Restart your PC and the drive X: mounted EFI partition disappears again. CONGRATULATIONS Linux OS is now completely uninstalled.

Similar Reads

How to Uninstall Firefox on Windows?
No doubt, Firefox is one of the Best Web Browser after Google Chrome. But if you have been using Firefox for a long time & now you want to switch to any other Web Browser, it is time to Remove Firefox From the Device. To Get Rid of Firefox, the best way to Uninstall Firefox on Windows. After Performing the Firefox Uninstallation Process, the sp
3 min read
How to Uninstall an Application on Windows 11?
Occasionally, we encounter a situation where our Windows 11 device gets full of applications & runs out of space. It is also necessary to get new Windows 11 applications on the device to walk with the new technologies. In such cases, there is only one way to force uninstall apps like the Photo App. Uninstalling Windows Applications could be unf
7 min read
How to uninstall packages from Linux?
In this article, we will learn to uninstall the different types of packages from Linux. Let's understand the uninstalling process through some examples: Example 1: Uninstall a package using apt-get In this example, we will remove GIMP, a graphics software that was installed with the help of apt-get. Step 1: To list all the apt-get packages, enter t
2 min read
How to Uninstall Packages With Apt Package Manager in Linux
The apt command is a sophisticated command-line tool that interacts with Ubuntu's Advanced Packaging Tool (APT) to execute tasks including installing new software packages, updating the package list index, and even upgrading the whole Ubuntu system. Along with this, we can uninstall or remove the downloaded packages from the system. So in this arti
2 min read
Uninstall Node.JS using Linux command line
To uninstall Node.js from your Linux system using the command line, you can follow these steps. The specific commands may vary depending on your Linux distribution, so I'll provide instructions for a few common package managers: APT (Debian/Ubuntu), YUM (Red Hat/CentOS), and DNF (Fedora). Check if Node is Installed or Not:Enter the following comman
3 min read
How to Uninstall npm
The Npm package is used in web development. It is a vital tool for JavaScript developers, enabling them to use open-source libraries and packages. With npm, developers can effortlessly integrate third-party results, enhancing their system’s functionality and effectiveness. Its rich package repository not only simplifies development but also promote
2 min read
How To Uninstall or Delete an App From an iPad or iPhone?
iPhones are one of the most used mobile phone in the world nowadays. Users who find these mobile devices are not simple mobile phones. The iPhone was branded by Apple Incorporation. Day after day, the device is getting new versions. These new versions are attracting more & more users throughout the globe. Though, the price of the iPhone is much
4 min read
How to Uninstall and Update Brew in MacOS?
Despite being a useful tool, individuals Install Mac Brew to make Mac Terminal more interactive. Occasionally, there is a need to Update Brew Mac to get the latest upgrade. However, if you are tired of the Mac Homebrew Package and want to get rid of it, then there is a simple way to Uninstall Brew Package from your device. In this article, we will
3 min read
How to Uninstall Apps on MacBook?
The MacBook is a portable light laptop designed and marketed by Apple Inc. which runs on the Mac OS. There are nearly 100 million active users present worldwide who are operating MacBook regularly. Like any other device, there are 35+ MacBook Pro Applications and users can install any third-party application there. With numerous Mac App Installatio
5 min read
How to Install and Uninstall Software via CMD?
Are you aware that other methods can be used to install and uninstall software without GUI (Graphical User Interface)? One of the ways you can rely on this is through CMD. Microsoft Windows has a potent tool known as Command Prompt, which is shortly CMD. It enables you to give instructions and perform duties without applying a graphical user interf
4 min read
Article Tags :