IssueRaiser

wsl --unregister <Distro> should warn users that their data will be permanently deleted.

### Windows Version Microsoft Windows [Version 10.0.22621.1413] ### WSL Version 1.1.6.0 ### Are you using WSL 1 or WSL 2? - [X] WSL 2 - [ ] WSL 1 ### Kernel Version 5.15.90.1 ### Distro Version Ubuntu 20.04 ### Other Software _No response_ ### Repro Steps wsl --unregister <Distro> ### Expected Behavior After running the command line, the program should ask the user to answer yes or no regarding the permanent removal of the distribution. Example: ``` wsl --unregister <Distro> Are you sure you want to permanently delete <Distro>? (yes/no) ``` This will prevent more users from mistakenly deleting all their information as it has been reported on multiple occasions. For automation purposes, an extra flag should be added to skip the message (e.g., --force). Example: ``` wsl --unregister <Distro> --force ``` ### Actual Behavior No warnings are prompt to the user. WSL 2 deletes the distribution without asking the user. ### Diagnostic Logs _No response_

Posted by jgarzagu on Apr 7, 2023, 8:07 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

github (SaaS)

wsl --unregister <Distro> should warn users that their data will be permanently deleted.

jgarzaguApr 7, 2023, 8:07 AM

### Windows Version Microsoft Windows [Version 10.0.22621.1413] ### WSL Version 1.1.6.0 ### Are you using WSL 1 or WSL 2? - [X] WSL 2 - [ ] WSL 1 ### Kernel Version 5.15.90.1 ### Distro Version Ubuntu 20.04 ### Other Software _No response_ ### Repro Steps wsl --unregister <Distro> ### Expected Behavior After running the command line, the program should ask the user to answer yes or no regarding the permanent removal of the distribution. Example: ``` wsl --unregister <Distro> Are you sure you want to permanently delete <Distro>? (yes/no) ``` This will prevent more users from mistakenly deleting all their information as it has been reported on multiple occasions. For automation purposes, an extra flag should be added to skip the message (e.g., --force). Example: ``` wsl --unregister <Distro> --force ``` ### Actual Behavior No warnings are prompt to the user. WSL 2 deletes the distribution without asking the user. ### Diagnostic Logs _No response_

Comments (0)

No comments yet. Start the discussion.

Comment on this issue