wsl items
Build, Test & Publish / Build (push) Successful in 1m40s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 3m6s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 39s

This commit is contained in:
2026-07-09 12:48:16 +10:00
parent db11e2e359
commit bcb2a244ee
4 changed files with 27 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# Clear Unused Disk Space
WSL will grow but never shrink the size of the virtual disk. This can be a problem if you have a lot of unused space in your WSL virtual disk. You can reclaim this space by running the following command in PowerShell admin:
```powershell
wsl --shutdown
# Navigate to the location of the ext4.vhdx file. This is usually in C:\Users\<username>\AppData\Local\Packages\<distro>\LocalState\ext4.vhdx
# Run the following command to compact the virtual disk
Optimize-VHD -Path .\ext4.vhdx -Mode Full
```