Skip to content

Instantly share code, notes, and snippets.

@emaia
Created December 2, 2022 21:19
Show Gist options
  • Save emaia/d16359156e11364294fbf76996cd2e3e to your computer and use it in GitHub Desktop.
Save emaia/d16359156e11364294fbf76996cd2e3e to your computer and use it in GitHub Desktop.
wsl.exe –terminate <Distro>
wsl –shutdown
diskpart
select vdisk file=%appdata%\..\Local\Local\Packages\SomeWSLVendorName\LocalState\ext4.vhdx
compact vdisk
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment