purge-old-directories

These two PowerShell scripts were designed to help manage and clean up by purging old directories.

purge-files-in-folder.ps1 deletes all files in a specified folder using the robocopy /purge command, and removes the folder if it ends up empty. purge-old-folders.ps1 calls that script against directories older than a given number of months within a target path. Both scripts accept a -Force flag to run without user confirmation.