Hi !
the most obvious way is to run : wsl --unregister distribution
where distribution is the name of the distribution you want to "format" (you can get the list of the distributions you have installed by running wsl -l).
So for example if you're using Ubuntu :
wsl --unregister ubuntu
wsl ubuntu
should get you a brand new install of Ubuntu.
Beware that everything that was stored on the wsl drive will be lost, and the command won't ask for a confirmation, so make sure you back up everything you need first !
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi !
the most obvious way is to run :
wsl --unregister distribution
where distribution is the name of the distribution you want to "format" (you can get the list of the distributions you have installed by running
wsl -l
).So for example if you're using Ubuntu :
should get you a brand new install of Ubuntu.
Beware that everything that was stored on the wsl drive will be lost, and the command won't ask for a confirmation, so make sure you back up everything you need first !