Start over

How to reset WSL Linux distro on Windows 11

Here are two ways to reset Linux distros on WSL to fix problems or start over.

WSL reset Linux distros

On Windows 11, the Windows Subsystem for Linux (WSL) is a virtualization platform that allows you to work with Linux distros alongside the host operating system. 

If you notice problems or have to start over with a specific Linux distribution, it’s possible to reset the distro on WSL using the Settings app or command line without removing and re-downloading anything.

This guide will teach you the steps to reset a Linux distro (such as Ubuntu, Kali Linux, Debian, or SUSE) to fix problems or reset the configuration on Windows 11. (See also how to install WSL on Windows 11.)

Reset Linux distro on WSL with Settings

To reset a Linux distribution on WSL, use these steps:

  1. Open Settings on Windows 11.

  2. Click on Apps.

  3. Click on Apps & features.

  4. Select the distro of Linux, click the menu (three-dotted) button, and click on Advanced options.

    Linux distro advanced options

  5. Click the Reset button.

    WSL reset distro with Settings

  6. (Optional) Click the Repair button.

    Quick tip: The process may take some time. If you can’t open the distro again, the repair option may help.

Once you complete the steps, the WSL distro will be reset, and you will need to go through the setup process one more time to start using it.

Reset Linux distro on WSL with command line

To unregister a Linux distro on WLS with Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to view the available distros and press Enter:

    wsl --list
  4. Type the following command to reset the WSL distro on Windows 11 and press Enter:

    wsl --unregister DISTRO-NAME

    In the command, replace DISTRO-NAME for the name of the distro to reset (see step No. 3). This example unregisters Ubuntu:

    wsl --unregister Ubuntu

    WSL unregister Linux distro

  5. (Optional) Type the following command to confirm the Linux distro has been unregistered and press Enter:

    wsl --list

After you complete the steps, the distro will reset and no longer be available on the Windows Subsystem for Linux. However, the distribution will continue to be available on the device. If you want to register it again, open it again from the Start menu.