Hi,
I'm looking for a Powershell script dat finds the three largest files in a directory tree and delete these files. I found a script that lists those files, but how to delete them?
Here is what I got so far;
gci E: -r| sort -descending -property length | select -first 3 name, @{Name="Gigabytes";Expression={[Math]::round($_.length / 1GB, 2)}}
Thanks!