How to unsubscribe and reset Windows Subsystem for Linux (WSL) distro on Windows 10

How to unsubscribe and reset Windows Subsystem for Linux (WSL) distro on Windows 10

Windows Subsystem for Linux (WSL) is a new feature of Windows 10 that allows you to run Linux command line tools directly on Windows, along with traditional desktop applications and modern Windows Store apps.

With Windows Subsystem for Linux (WSL) enabled, you can install WSL distro applications from the Microsoft Store.

This guide will show you how to unsubscribe and reset the Windows Subsystem for Linux (WSL) distro to its default settings in Windows 10.

Unregister and reset the Windows Subsystem for Linux (WSL) distro in Settings

1. To know how to reset WSL distro application in Settings , see the article: How to reset a program on Windows to its default setting state.

Reset apps in Windows

2. Now, you can run this WSL distro application to reinstall and set up the distro with your new UNIX username and password.

You can run this WSL distro application to reinstall and set up the distro

Unregister and reset the Windows Subsystem for Linux (WSL) distro in the Command Prompt

1. Open Command Prompt.

2. Copy and paste the command below corresponding to the Windows 10 version into the Command Prompt and press Enter . Note the name of the available WSL distro you want to unsubscribe from.

(For Windows 10 version 1903 or higher)

wsl --list --all or wsl -l --all

Or:

(For Windows 10 version earlier than 1903)

wslconfig /list /all or wslconfig /l /all
Copy and paste the command corresponding to the Windows 10 version

3. Enter the command below corresponding to your version of Windows 10 into the Command Prompt and press Enter .

(For Windows 10 version 1903 or higher)

wsl --unregister <DistributionName>

Or:

(For Windows 10 version earlier than 1903)

wslconfig /unregister <DistributionName>

Replace <DistributionName> in the command above with the actual WSL distro name (eg “Ubuntu”) from step 2 you want to unsubscribe.

For example: wsl --unregister Ubuntu

The command to unsubscribe from Ubuntu

4. When done, you can close the Command Prompt if you want.

5. Now, you can run this WSL distro application to reinstall and set up the distro with your new UNIX username and password.

Reinstall and set up the distro with the new UNIX username and password

Unregister and reset the Windows Subsystem for Linux (WSL) distro in PowerShell

1. Open PowerShell.

2. Copy and paste the command below for your version of Windows 10 into PowerShell and press Enter . Note the name of the available WSL distro you want to unsubscribe from.

(For Windows 10 version 1903 or higher)

wsl --list --all or wsl -l --all

Or:

(For Windows 10 version earlier than 1903)

wslconfig /list /all or wslconfig /l /all
Enter the command into Powershell

3. Type the command below for Windows 10 version into PowerShell and press Enter . (For Windows 10 version 1903 or higher)

wsl --unregister <DistributionName>

Or:

(For Windows 10 version earlier than 1903)

wslconfig /unregister <DistributionName>

Replace <DistributionName> in the command above with the actual WSL distro name (eg “Ubuntu”) from step 2 you want to unsubscribe.

For example: wsl --unregister Ubuntu

Unsubscribe WSL distro using PowerShell

4. When done, you can close PowerShell if you want.

5. Now, you can run this WSL distro application to reinstall and set up the distro with your new UNIX username and password.

Set up the distro with a new UNIX username and password
2