Delete files older than a number of days using Powershell
June 20, 2012
I was recently tasked with automating a process of removing log files from a directory that were older than a specified number of days, where the application generating the log files has no retention policy management. In this example files older than seven days were required to be removed. The retention script (and like most … More Delete files older than a number of days using Powershell