There are two options mentioned out there: - https://github.com/brooks-code/WSL-VHDX-Compact - https://github.com/okibcn/wslcompact and probably (much) more on GitHub :)