Draft a PowerShell script that finds and deletes all .log files older than [X] days in [folder], outputs a summary to the screen, and logs to a file.
Useful prompt but the real issue is bigger? That usually means the workflow or team mechanism needs attention, not just the wording.
Saves disk space, automates routine cleanup, and documents what was deleted.
Folder: C:Logs, Days: 30. Script: Get-ChildItem, Remove-Item, Write-Output, log to C:CleanupReport.txt.
Log in to suggest improvements.