ItsmeITItsmeIT
  • Linux
    • Debian
    • Ubuntu
  • PC/Windows
Reading: How to Uninstall Ubuntu from WSL2 on Windows
Share
Notification Show More
Font ResizerAa
ItsmeITItsmeIT
Font ResizerAa
  • Categories
    • Linux
    • Debian
    • Ubuntu
    • PC/Windows
Have an existing account? Sign In
Follow US
© 2025 ItsmeIT. All rights reserved.

Home » PC/Windows » How to Uninstall Ubuntu from WSL2 on Windows

How to Uninstall Ubuntu from WSL2 on Windows

avatar
By
Loibv
avatar
ByLoibv
The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
Follow:
Last updated: August 30, 2025

Ubuntu on WSL2 is a popular choice for running Linux directly inside Windows. However, sometimes you may want to remove Ubuntu to free up disk space, reinstall it from scratch, or completely uninstall it. This guide explains in detail the different ways to remove Ubuntu from WSL2, along with data warnings and extra tips to ensure you do it safely and correctly.

Check Your Ubuntu Version in WSL2

Before removing Ubuntu, you need to identify the exact distribution name. Open PowerShell and run:

wsl -l -v

Example output:

  NAME            STATE     VERSION
* Ubuntu-22.04    Stopped   2
  Ubuntu-24.04    Stopped   2
Check Ubuntu Version in WSL2
Check Ubuntu Version in WSL2

This shows that you may have multiple versions of Ubuntu installed at the same time.

Method 1: Remove Ubuntu Data from WSL2

⚠️ Warning: This will permanently delete all data inside Ubuntu and cannot be recovered. Make sure to back up your files first.

If you just want to reset Ubuntu but keep the app from the Microsoft Store:

  1. Open PowerShell as Administrator.
  2. Run the command:
wsl --unregister Ubuntu-22.04
Ubuntu removed from wsl2
Ubuntu has been successfully removed from the computer.

This completely wipes the file system, user accounts, and data inside Ubuntu.

    💡 Tip: After unregistering, simply open the Ubuntu app again from the Start Menu, and it will reinstall automatically.

    Method 2: Completely Uninstall the Ubuntu Application

    If you want to remove both the Ubuntu app and all its data:

    1. Go to Settings → Apps → Installed apps.
    2. Type Ubuntu in the search box.
    3. Select the correct version (e.g., Ubuntu-22.04).
    4. Click Uninstall to completely remove it.

    💡 Why: This removes both the app and the distro, freeing up more disk space. This method is best if you no longer need Ubuntu in WSL2 at all.

    When Should You Use Each Method?

    • Method 1: When you want to reset Ubuntu or reinstall another distribution.
    • Method 2: When you don’t need Ubuntu in WSL2 anymore.

    FAQ

    Ubuntu is broken. How should I remove it?
    → Use wsl --unregister <distro_name> to wipe it, then reopen the Ubuntu app to reinstall.

    Can I remove multiple Linux distributions from WSL2 at once?
    → Yes, just run wsl --unregister <distro_name> for each one (e.g., Ubuntu-22.04, Debian).

    Does uninstalling Ubuntu in WSL also remove Windows Subsystem for Linux itself?
    → No. Removing Ubuntu only affects that distribution. WSL2 remains installed so you can use or install other distros.

    Removing Ubuntu from WSL2 can be done in two ways: either reset it with wsl --unregister or completely uninstall it via Settings. With the warnings and tips above, you can perform these steps safely and keep your system clean and organized.

    TAGGED:wsl2
    Share This Article
    Facebook Reddit Telegram Threads
    avatar
    ByLoibv
    Follow:
    The ItsmeIT team – delivering cutting-edge updates, tech trends, and insider knowledge from the world of technology.
    Leave a Comment

    Leave a Reply Cancel reply

    You must be logged in to post a comment.

    Most Popular

    Install WSL 2 Windows 11 Using Command
    How to Install WSL 2 on Windows 11 (Using Commands)
    Install WSL 2 on Windows 11
    How to Install WSL 2 on Windows 11 (Ubuntu, Debian, Kali Linux, etc.)
    Windows 10 WSL2 Setup CMD
    Install WSL2 Without Store on Windows 10 Using DISM and PowerShell
    Install WSL2 on Windows 10
    How to Install WSL2 on Windows 10 (2025 Updated)
    ItsmeITItsmeIT
    Follow US
    © 2025 ItsmeIT. All Rights Reserved.
    • Privacy Policy
    • Terms of Service
    Logo ItsmeIT logo
    Welcome Back!

    Sign in to your account

    Continue with Google
    Register   |Lost your password?