LogDelete was originally created to help us keep on top of excess log files, running this program on a task every day. this can alternatively be run as a once off.
This doesn’t just clear log files, it will delete any file in a given location that’s older that the specified number of days.
You have the option to List or Delete the files. Listing (/L) them will show you what files will be affected if you was to use the delete (/D) switch. very handy little tool to clear out old logs on a schedule.
List files last modified over 7 days ago in the C:\temp folder – LogDelete.exe C:\temp 7 /L
Delete files last modified over 7 days ago in the C:\temp folder – LogDelete.exe C:\temp 7 /D
You can find hte powershell script version of this here
Download: – Download
Download Size: – 4kb
Downloaded 117 times