Combine PowerShell and diskpart to get your storage space back.
wsl --shutdownSample output: Ubuntu-24.04
wsl --listSample output: C:\Users\You\AppData\Local\wsl\{e3facf9c-8b16-3776-a92f-af9e81e751ec}\ext4.vhdx
(Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq 'Ubuntu-24.04' }).GetValue("BasePath") + "\ext4.vhdx"select vdisk file="C:\Users\You\AppData\Local\wsl\{e3facf9c-8b16-3776-a92f-af9e81e751ec}\ext4.vhdx"attach vdisk readonly
compact vdisk
detach vdiskexit