Tag Archives: directory maintenance

Delete Folders older than X days Recursively

Everyone runs into the problem eventually  where they need to delete folders based on age. The script discussed in this post does exactly that. It checks the passed folder, or the default if no folder is specified and if there are any folders under it that are more than X days old, the folder and it's contents are removed.

To understand where a script like this may be useful, see our article, Error 0x00000002 when Adding a printer.

Continue reading Delete Folders older than X days Recursively