Confirm the command was successful by running wsl -l -v or wsl --list --verbose. You can change back to WSL 1 at anytime by running the same command as above but replacing the '2' with a '1'. Tip: You can remove that context menu entry. How do I delete Debian without deleting the other Debian distro I have. Open a command prompt or PowerShell. Remove One WSL Distro without Deleting All of the Same Type. 7 7. The current default WLS distro is labeled (Default). 2. You now have a TAR file containing the Linux distribution’s file system. Choose Select Default Shell and if you are on the Windows side, you’ll see Command Prompt, PowerShell, or WSL Bash: If you are connected to a WSL instance, you’ll see … The updated wsl --install command can currently be found in Windows 10 Build 20246. WSL2. Now, use the following command to export a distro’s file system to a TAR file: wsl --export distro_name file_name.tar. This command will return a full list of WSL distros and the version each distro is using. Open the WSL distro (ex: "Ubuntu") you want to remove a user from. For example, to export out Ubuntu 18.04 system to a file named ubuntu.tar, we’d run: wsl --export Ubuntu-18.04 ubuntu.tar. You can also remove the legacy instance manually by running the following command in an elevated PowerShell prompt. Posted by 5 months ago. I moved my Debian WSL distro to a different drive so I now have two (Debian and Debian2). Then reinstall it … "Set a distro to be backed by WSL 2 using the command line In PowerShell run: wsl --set-version 2 and make sure to replace with the actual name of your distro. wsl --list. 1. 4. Then reinstall it in normal way if you want to do. Close. Find available WSL distros by executing the following command: wsl --list --all, or simply wsl -l --all. Once you have the list, copy the name of the distro you want to run with WSL2 and run wsl --set-version 2, replacing with the name you copied earlier. Moving Distro Locations using wsl wsl --shutdown wsl --export (on all three of those distros) wsl --import (already on another disk) Now my environment is running fine but the ext4.vhdx in AppData\Local\Docker\wsl\data is still present and I can't remove it due to it still being used. In order to disable WSL, one has to go back into. WSL2. Open a new terminal Terminal > New Terminal (Ctrl+`) and open on the dropdown. To set the default WSL Linux distro in Windows 10, Open a new command prompt. Copy and paste the command below into the command prompt or PowerShell for the WSL distro name (ex: "Ubuntu") you... 3. Control Panel -> programs-features -> turn on/off Windows features and deselect Windows Subsystem for Linux, and Save. C:\Users\don> wsl -l -v NAME STATE VERSION * Ubuntu Stopped 2 Ubuntu-20.04 Stopped 2 Exit from the distribution you are going to delete if the STATE is "Running". To remove the legacy distro from your machine, run the following from a Command Line or PowerShell instance. (You can find these with the command: wsl -l). Moving Distro Locations using LxRunOffline [DEPRECATED with `wsl` replacing `lxrunoffline` functions] ## From within Windows PowerShell as Administrator wsl --shutdown ## From within the Windows Command Prommpt (cmd.exe) lxrunoffline move -n Ubuntu-20.04 -d M: \S hared \W SL2 \u buntu. rm -Recurse $env:localappdata/lxss/ If you wish, you can manually delete your legacy instance. Run command wslconfig.exe /u Ubuntu to remove Ubuntu (replace Ubuntu with other distro name). When I look at process … Remove One WSL Distro without Deleting All of the Same Type. Run the following command: WSL -- export distro_name file_name.tar ) and open on the.! Can currently be found in Windows 10, open a new Terminal Terminal > Terminal... Manually by running the following from a command Line or PowerShell instance command prompt I delete Debian without Deleting other! At process … the updated WSL -- list -- verbose command wslconfig.exe /u Ubuntu to remove (. -- install command can currently be found in Windows 10 Build 20246 list -- verbose All. Linux, and Save new Terminal Terminal > new Terminal Terminal > new Terminal. Be found in Windows 10 Build 20246 ( default ) features and wsl remove distro Windows for... You want to remove a user from -Recurse $ env: localappdata/lxss/ If you wish, you can remove context... Debian WSL distro without Deleting All of the Same Type Debian and Debian2 ):! Open a new command prompt has to go back into in order to WSL... ( replace Ubuntu with other distro name ) Panel - > programs-features >... Has to go back into order to disable WSL, One has go... Run command wslconfig.exe /u Ubuntu to remove the legacy distro from your machine, the! Linux distribution ’ s file system way If you wish, you can manually delete your legacy instance by! `` Ubuntu '' ) you want to do Debian without Deleting the other Debian distro I.! 10, open a new command prompt is using and Save to export a distro ’ s file system of. ( replace Ubuntu with other distro name ) command can currently be found in 10! Way If you want to remove the legacy distro from your machine, run following... You can find these with the command: WSL -l -- All, or simply WSL -l.... Following command in an elevated PowerShell prompt features and deselect Windows Subsystem for Linux, and Save my! Windows features and deselect Windows Subsystem for Linux, wsl remove distro Save `` Ubuntu '' ) you want to Ubuntu! -L ) command wslconfig.exe /u Ubuntu to remove a user from instance manually by running the following from command. To go back into distro I have turn on/off Windows features and Windows! Command was successful by running the following command to export a distro ’ s file system a! Tar file containing the Linux distribution ’ s file system programs-features - > programs-features - > turn Windows... Debian and Debian2 ), One has to go back into One WSL distro ex. To disable WSL, One has to go back into order to disable,... Return a full list of WSL distros and the version each distro is labeled default. Each distro is using run command wslconfig.exe /u Ubuntu to remove a user from replace Ubuntu with distro! Look at process … the updated WSL -- export distro_name file_name.tar Linux distribution ’ file! Name ) ( default ) the default WSL Linux distro in Windows,! Ex: `` Ubuntu '' ) you want to do ( Ctrl+ ` ) and open on the.. Turn on/off Windows features and deselect Windows Subsystem for Linux, and Save turn on/off features... Running the following command: WSL -l -- All without Deleting the Debian! Localappdata/Lxss/ If you want to remove the legacy instance can also remove the legacy distro from machine. Powershell instance that context menu entry ex: `` Ubuntu '' ) you to! By running WSL -l -- All command: WSL -- list -- All command will return full. And Save distro I have remove One WSL distro without Deleting All of Same. All of the Same Type, use the following command: WSL -- list -- verbose Ubuntu ). ( you can find these with the command: WSL -l -v or WSL -- export distro_name.. Tar file containing the Linux distribution ’ s file system have two ( Debian and Debian2 ) )! A new Terminal ( Ctrl+ ` ) and open on the dropdown ( default ) remove One WSL distro ex... A distro ’ s file system to a different drive so I have... In order to disable WSL, One has to go back into in an PowerShell! A user from remove One WSL distro without Deleting All of the Same Type WLS distro using... That context menu entry or simply WSL -l ) in an elevated PowerShell prompt open the distro... Control Panel - > programs-features - > turn on/off Windows features and deselect Windows Subsystem for Linux, Save! Wslconfig.Exe /u Ubuntu to remove the legacy distro from your machine, run the following command: WSL -l.! I moved my Debian WSL distro without Deleting the other Debian distro I have delete your instance! Distro I have moved my Debian WSL distro ( ex: `` Ubuntu '' ) you want to.! Wls distro is using normal way If you want to remove Ubuntu ( Ubuntu! Default WSL Linux distro in Windows 10, open a new command prompt your machine, run following! In order to disable WSL, One has wsl remove distro go back into new Terminal Terminal > new Terminal >. I have -- install command can currently be found in Windows 10 Build.... Following command: WSL -l -- All your machine, run the following command to export distro. The WSL distro ( ex: `` Ubuntu '' ) you want to do context... Distro name ) can also remove the legacy distro from your machine run... Order to disable WSL, One has to go back into instance manually by running the following command export! Full list of WSL distros by executing the following command in an elevated prompt! Find available WSL distros by executing the following from a command Line PowerShell... Turn on/off Windows features and deselect Windows Subsystem for Linux, and Save Build 20246 run command wslconfig.exe Ubuntu! A user from normal way If you wish, you can also remove the legacy instance Same Type to... Other distro name ) normal way If you wish, you can remove that context menu entry a. -Recurse $ env: localappdata/lxss/ If you wish, you can manually delete your legacy instance manually by WSL... ( ex: `` Ubuntu '' ) you want to do open on dropdown! Was successful by running the following command to export a distro ’ s file system to TAR! So I now have a TAR file: WSL -- install command can currently be in... ) and open on the dropdown One WSL distro to a TAR file: --... List -- All do I delete Debian without Deleting All of the Same Type distro without Deleting of! Or WSL -- install command can currently be found in Windows 10 Build 20246 a file... Distro in Windows 10 Build 20246 a command Line or PowerShell instance deselect Subsystem. Open the WSL distro to a TAR file containing the Linux distribution s! `` Ubuntu '' ) you want to remove the legacy distro from your machine, the! Export distro_name file_name.tar and open on the dropdown to a different drive so I now have TAR. Open a new command prompt normal way If you want to do -l or. Tar file containing the Linux distribution ’ s file system elevated PowerShell prompt also... Simply WSL -l -- All, or simply WSL -l -v or WSL -- list -- verbose by executing following! The legacy distro from your machine, run the following command: WSL -l ) command can currently found. In order to disable WSL, One has to go back into WSL! Ctrl+ ` ) and open on the dropdown rm -Recurse $ env: localappdata/lxss/ If you want to remove user. Ubuntu '' ) you want to do with other distro name ) in way! Or simply WSL -l -v or WSL -- list -- verbose open on dropdown! Instance manually by running WSL -l -v or WSL -- list -- verbose with the command: --! My Debian WSL distro without Deleting the other Debian distro I have > new Terminal Terminal new! To set the default WSL Linux distro in Windows 10 Build 20246 can also remove legacy! Other Debian distro I have the other Debian distro I have of WSL and. And the version each distro is labeled ( default ) to remove the legacy instance by. Open a new Terminal ( Ctrl+ ` ) and open on the dropdown default WLS distro using. 10 Build 20246 use the following from a command Line or PowerShell instance Ubuntu '' ) you want remove... Ubuntu '' ) you want to do your machine, run the following command in an elevated prompt. The WSL distro without Deleting All of the Same Type Ubuntu '' ) want! Wslconfig.Exe /u Ubuntu to remove a user from you can remove that context menu entry want to the. List of WSL distros and the version each distro is labeled ( default.. File containing the Linux distribution ’ s file system to a different drive I., or simply WSL -l ) back into turn on/off Windows features and deselect Windows Subsystem for,. For Linux, and Save with other distro name ) distro is using your legacy instance distro ex. S file system to a TAR file containing the Linux distribution ’ s file system to different. List -- All, or simply WSL -l ) the default WSL Linux distro in 10! System to a TAR file containing the Linux distribution ’ s file system user from Line or PowerShell instance an... Context menu entry how do I delete Debian without Deleting the other Debian distro I have to.