Also, since the distributions are available through the Microsoft Store, they install and behave like an app. If you are having problems or need to start over with a specific Linux distro, you can reset the distribution running on WSL2 using the Settings app or command line without removing and redownloading the bits to start over. 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 10. (See also how to install WSL2 on Windows 10.)

Reset Linux distro on WSL2 with Settings Reset Linux distro on WSL2 with command line

Reset Linux distro on WSL2 with Settings

To reset a Linux distribution on the Windows Subsystem for Linux 2, use these steps: Once you complete the steps, the Linux distro will be reset. If you want to start it over, you will need to go through the setup process one more time.

Reset Linux distro on WSL2 with command line

To unregister a Linux distro on WLS2 with Command Prompt, use these steps: After you complete the steps, the distro will reset and no longer be available on the Windows Subsystem for Linux. However, the distro will remain installed on the computer. If you want to register it again, click the Launch button from the Microsoft Store or select it from the Start menu. In the command, replace DISTRO-NAME for the name of the distro you want to set as default (see step No. 3). For example, this command unregisters Kali Linux:

		      All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.