Windows

How to Uninstall Ubuntu from Windows 11 WSL

Richard
Written by
Richard
Nov 15, 2022 Updated Apr 16, 2026 3 min read
How to Uninstall Ubuntu from Windows 11 WSL

This guide explains how to remove a Ubuntu Linux distribution from your Windows 11 computer when using the Windows Subsystem for Linux (WSL).

WSL allows you to run Linux tools directly on Windows without needing a separate virtual machine. Sometimes, you may decide you no longer need this environment. Because Linux distributions are installed like standard software, you can remove them using the Windows Settings menu or through command-line tools.

Why remove Ubuntu from WSL?

You might want to remove Ubuntu to free up hard drive space, fix a broken installation, or simply because you no longer need to run Linux commands on your system.

What happens when you are done?

Once you finish these steps, the Ubuntu environment, along with all the files and programs saved inside that Linux system, will be permanently deleted from your computer.

Uninstall via the Settings App

Since Ubuntu is installed through the Microsoft Store, Windows treats it like any other app.

  1. Open your Windows Settings app. You can find this by clicking the Start button and selecting Settings.
windows 11 new settings button

  1. Go to Apps, then select Installed apps.
  2. Find Ubuntu in the list.
  3. Click the three dots on the right side and select Uninstall.
uninstall ubuntu from wsl windows 11

Uninstall via Command Prompt

You can also use the Command Prompts to remove the distribution.

Note: This step requires admin privileges. Open your Command Prompt or Windows PowerShell as an administrator.

First, see a list of all your installed apps by running this command:

💻Code
winget list

Look for the Ubuntu entry in the list. Once you find the correct name, use the following command to remove it:

💻Code
winget uninstall --id Canonical.Ubuntu

Uninstall via the WSL Command

If you installed your Linux distro manually, it might not show up in your app list. In this case, you can use the Ubuntu Linux distribution was imported command.

Note: This step requires admin privileges. Open your Command Prompt or PowerShell as an administrator.

First, list the Linux versions currently installed on your computer:

💻Code
wsl --list

To remove the Ubuntu environment, run this command:

💻Code
wsl --unregister Ubuntu

Summary

  • Multiple Methods: You can remove Ubuntu using the Windows Settings app, the winget command, or the wsl command.
  • Ease of Use: Windows provides both simple visual menus and powerful command-line options to manage your Linux installations.
  • Flexibility: Choose the method that feels most comfortable for your skill level.

How do I uninstall Ubuntu from Windows 11 WSL?

You can uninstall Ubuntu from Windows 11 WSL by going to the Settings app, navigating to Apps, and selecting Installed apps. Find Ubuntu in the list, click the three dots next to it, and choose Uninstall.

Can I remove Ubuntu from WSL using Command Prompt?

Yes, you can remove Ubuntu from WSL using Command Prompt. Open Command Prompt as an administrator and run the command 'winget list' to find the Ubuntu package, then use 'winget uninstall ' to remove it.

What is Windows Subsystem for Linux (WSL)?

Windows Subsystem for Linux (WSL) allows developers to run a GNU/Linux environment directly on Windows without the need for a virtual machine or dual-boot setup. It supports most command-line tools and applications.

Is uninstalling Ubuntu from WSL the same as deleting it from my computer?

Yes, uninstalling Ubuntu from WSL removes the distribution from your computer, freeing up space and resources. It is treated like any other application installed on Windows.

What happens to my files when I uninstall Ubuntu from WSL?

When you uninstall Ubuntu from WSL, all files and data associated with that distribution will be deleted. Make sure to back up any important files before proceeding with the uninstallation.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2458 articles → Twitter

📚 Related Tutorials

How to Uninstall WSL from Windows 11
Windows How to Uninstall WSL from Windows 11
How to Uninstall Apps in Windows 11
Windows How to Uninstall Apps in Windows 11
How to Access Linux Files on Windows 11 Using WSL
Windows How to Access Linux Files on Windows 11 Using WSL
How to Access Command Prompt in Windows 11
Windows How to Access Command Prompt in Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *