This is a utility I wrote the first version of many years ago. At work we have a need to remove old files from sometimes very deep directory structures. This utility removes all files from a path over a certain age. Optionally, it scans down through the directory structure deleting any files it needs to and removing empty folders once done. I just recently updated this to support file pattern matching as I had a need for this. Useful for seeking out and removing those old log files… Also added a test mode, just in case!
Feel free to make use of this. It is supplied as is of course, without warranty of any kind. It works fine for me and is fully trusted on important data in scripts, but if it does delete all your files, don’t shout at me…
Windows with .Net or Linux/Mac and Mono required.
This utility is free for non-commercial use but if you find it useful and wish to donate beer money, you can do so Via Bitcoin or PayPal. Any amount (no matter how small) will give you a warm fuzzy feeling and help me keep the power on. Be fair, just donate what you think is right. Thank you.
Bitcoin to 1PsQP6ECsevKRck4NPNJ3ZLnGaSJLxNyUT
PayPal to pjs DOT guernsey AT gmail DOT com
Commercial arrangements and custom versions are available if you wish to re-distribute or use for commercial purposes. Contact me. You can view my linked in here