
Remove imported Linux distro on WSL with commands Once you complete the steps, the instance and distribution files will be removed from your computer. In the command, specify the name of the Linux distro to remove from Windows 11 completely. For example, this command removes the Ubuntu distro: winget uninstall -id Canonical.Ubuntu Type the following command to remove the Linux distro (Ubuntu, Debian, Kali, Mint, etc.) and press Enter: winget uninstall -id "DISTRO-ID-NAME" Type the following command to list all the apps installed on Windows 11 and press Enter: winget uninstall Search for Command Prompt (or PowerShell), right-click the top result, and select the Run as administrator option.

To remove any WSL distribution with commands on Windows 11 or 10, use these steps: Select the Linux distro and click the Uninstall button.Īfter you complete the steps, the Ubuntu, Kali, Mint, Debian, or the specific distribution will no longer be available on Windows 10 Remove Linux distro on WSL from Command Prompt or PowerShell To uninstall a distro on Windows 10, use these steps: Once you complete the steps, the Linux instance and the distribution will be removed from Windows 11. Select the Linux distro, open the menu (three-dotted button) on the right side, and choose the “Uninstall” option. Quick note: On version 21H2, the page’s name was “Apps & features.” To completely remove a Linux distro on WSL, use these steps: Whether you have Windows 11 or Windows 10, the steps to use the Settings app to remove a Linux distro would be slightly different. Remove imported Linux distro on WSL with commands.Remove Linux distro on WSL from Command Prompt or PowerShell.


However, this command would remove a distribution you restored from the backup.

You can also use the -unregister option with the wsl.exe tool, but it only resets the Linux instance without deleting the files. Since Linux distros are available through the Microsoft Store, they are considered applications, which means you can use the Settings app and the Windows Package Manager (winget) command to uninstall any distribution. Windows Subsystem for Linux (WSL) allows you to completely remove any Linux distribution (for example, Ubuntu, Kali, Mint, and Debian) in at least three ways, whether you are on Windows 11 or Windows 10.
