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
  • Reset Linux distro on WSL with command line

Reset Linux distro on WSL with Settings

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

  • Open Settings on Windows 11.
  • Click on Apps.
  • Click on Apps & features.
  • Select the distro of Linux, click the menu (three-dotted) button, and click on Advanced options.
  • Click the Reset button.
  • (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.

Open Settings on Windows 11.

Click on Apps.

Click on Apps & features.

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

Click the Reset button.

(Optional) Click the Repair button.

Reset Linux distro on WSL with command line

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

  • Open Start.
  • Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  • Type the following command to view the available distros and press Enter:
  • wsl –list
  • 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
  • (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.

Open Start.

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

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

wsl –list

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

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