Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

16
  • wsl --unregister Ubuntu should remove it. If that doesn't work, provide the output, for wsl --list --verbose as an edit to your question.
    – Ramhound
    Commented Jul 21, 2021 at 14:29
  • If the output to wsl --list --verbose is an empty list then you can simply delete the folder, since I am going to guess the reason you want to uninstall it, is because you were unable to figure out how to start it.
    – Ramhound
    Commented Jul 21, 2021 at 14:35
  • I don't recommend a wsl --unregister until we figure out if the appx is still installed. It probably can't hurt, but if the real goal is to "go back to how things were before installing Ubuntu", then it won't do that, since the Application itself would still be installed. Does a Get-AppxPackage | Where-Object { $_ -like "*Ubuntu*" } return any results? Commented Jul 21, 2021 at 15:22
  • 1
    Do you want to just uninstall the Ubuntu instance, or do you want to completely uninstall WSL? It's unclear to me why you don't have the "App" installed any longer (to be able to just use the normal Windows "Uninstall" functionality). Did you by chance do a wsl --import at any point? Anyway, since the App isn't there, do as @Ramhound suggested and wsl --unregister. If you want to completely uninstall WSL, see this answer. The Remove-AppxPackage isn't going to work for you since Get-AppxPackage indicates that it's not there. Commented Jul 23, 2021 at 15:06
  • 1
    @SuperFluo - If you want to remove the Ubuntu-20.04 instance just run the command wslconfig /unregister Ubuntu-20.04 in an elevated PowerShell prompt.
    – Ramhound
    Commented Jul 23, 2021 at 15:11