Skip to content

Uninstalling WSL2 does not remove ext4.vhdx #9683

Description

Version

Microsoft Windows [Version 10.0.22621.1105]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

n/a

Distro Version

Ubuntu

Other Software

No response

Repro Steps

WSL is great. Thank you for all of your hard work on it. I no longer need to use it for a project I'm on, and often have issues with disk space, so I went to go uninstall it to reclaim some space. When I get a new, larger hard drive, I'll probably install it again.

Anyway, on to the actual reproduction:

I removed WSL by following instructions I found. This asks you to use the "uninstall" option in the Installed Apps section of my Settings. I uninstalled both "Ubuntu on Windows" as well as "Windows Subsystem for Linux"

Expected Behavior

WSL is completely uninstalled.

Actual Behavior

While everything seemed to be uninstalled, I am still running quite low on hard rive space. After using a tool to determine what was taking up the most space on my hard drive, I found this file still exists:

C:\Users\steve\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx

My understanding is that this is the virtual hard drive, if you will, for my previous install. It's 96.2gb, which is almost 10% of my hard drive. I would have assumed that uninstalling would completely remove files from my filesystem, especially one this large. However, I also can see the utility of this lying around, in case I wanted my old files when I reinstalled, so I would maybe expect a question, asking me if I'd like to clear it up or not.

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions