Overview
Add a -DryRun switch parameter that scans all target paths and reports what WOULD be cleaned and how much space WOULD be freed, without deleting anything.
Implementation
- Add [switch] DryRun to the param() block
- In Remove-FolderContents and Remove-PathContents, skip Remove-Item when DryRun is set
- Change Write-Status prefix to [DRY] in dry-run mode
- Update summary to say Estimated space savings
- Update Show-Banner to show a yellow DRY RUN MODE indicator
Effort
~30 minutes.
Overview
Add a -DryRun switch parameter that scans all target paths and reports what WOULD be cleaned and how much space WOULD be freed, without deleting anything.
Implementation
Effort
~30 minutes.