Skip to main content

DeleteAfter – Free utility to automatically remove old files

By February 4, 2012January 26th, 2023Tech

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.

download

Donate

This tool is a freebie. Feel free to download it for your own personal use. If you wish to donate, please feel free to contribute towards further development. Remember, I’ve got to eat and keep the lights on too! Maybe buy me a coffee. Thanks for your support!

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.