okibcn / wslcompact

Compacts the size of the ever-growing WSL vhdx images.
https://github.com/okibcn/wslcompact
GNU General Public License v3.0
800 stars 19 forks source link

How to clear the swap.vhdx at first? #31

Closed JannikSchneider12 closed 11 months ago

JannikSchneider12 commented 11 months ago

Hey,

I am using WSL2 Ubuntu and I know that there is an issue with wsl in general capturing memory and not releasing it back. Thats why I wanted to use wslcompact but before that it says that I should clear my temp folder at first. The swap.vhdx file takes almost 50gb and I can not clear it. Does someone know how I can do this?

Thanks for your help