Some helpful utilities to really free up some disk space on Windows 11.
This removes all old Windows update and component packages (also means you can't uninstall updates)
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Use this to reduce size of the wsl virtual disk.
docker system prune -a --volumes
net stop com.docker.service
taskkill /IM "docker.exe" /F
taskkill /IM "Docker Desktop.exe" /F
wsl --shutdown
((@"
select vdisk file="%LOCALAPPDATA%\Docker\wsl\data\ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit
"@
)|diskpart)
net start com.docker.service
. "C:\Program Files\Docker\Docker\Docker Desktop.exe"