Share via

I can't uninstall WSL from windows 11

Anonymous
2024-03-01T00:48:09+00:00

I followed several tutorials, I already deleted Ubuntu and Windows subsystem for Linux from the add and remove programs section. But the problem comes when trying to deactivate it from Windows Features, I uncheck it and when I click OK it stays loading (I waited two days and it kept loading) More precisely, it stays at “looking for necessary files.”

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2024-06-16T18:28:33+00:00

    The Linux Icon is there because Windows Subsystem for Linux is still active.

    First you make sure everything is deleted:

    Run those cmds:

    1. wsl --unregister Ubuntu
    2. wsl --uninstall

    When the Linux Path is empty deactivate WSL. To do that you've to go to: "Turn Windows features on and off" and deactivate WSL (Windows Subsystem for Linux"

    Now everything is gone.

    ~Luschtige

    179 people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2024-03-01T10:23:05+00:00

    Hi walter david mendoza weber

    Welcome to the Microsoft Community, glad to help you. Realized that you can't uninstall WSL from Windows 11.It is recommended that you try the following:

    1.Use the PowerShell command:

    Open PowerShell (as administrator) and run the following command to disable WSL: Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

    2.Clean up the residual files related to WSL:

    Check the C:\Users<YourUsername>\AppData\Local\Packages directory for any WSL-related folders, and delete them if there are any.

    Check if there are any folders related to WSL or Ubuntu in the C:\Program Files\ directory, if so, delete them.

    3.Use the command line tool DISM:

    Open a command prompt (as administrator) and run the following command: dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

    After running, restart your computer.

    4.Check the integrity of the system files:

    Sometimes corrupted system files may prevent uninstalling the feature. Open a command prompt (as administrator) and run the following command to check and repair the system files: sfc /scannow Then try to uninstall WSL again.

    5.Uninstall in Safe Mode:

    Sometimes, starting Windows in Safe Mode can solve some problems. Restart your computer, then hold down the "Shift" key during startup and click "Restart" to access advanced startup options. Select Troubleshooting > Advanced Options > Startup Settings > Reboot and then on the Startup Settings screen and select "Enable Safe Mode". In Safe Mode, try uninstalling WSL again.

    I look forward to hearing from you and sharing more information.

    Zoro-MSFT | Microsoft Community Support Specialist

    30 people found this answer helpful.
    0 comments No comments

23 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2024-05-30T03:22:08+00:00

    Hello, I have tried all that you have mentioned (except for item 5) and I face the same problem as the other guy—the Linux icon is still there. Also, I cannot uninstall the WSL in the System > System Components. What should I do?

    4 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-11-02T17:42:51+00:00

    You're an absolute legend! Thank you sooo much for the answer. This was really getting on my nerves hahaha

    0 comments No comments