Three scripts of mine at SQLServerCentral.com
Since I can’t publish them myself for thirty days (I did agree to the sites rules about re-publishing)…
Delete files older than N-days via T-SQL:
Powershell “unload and archive table” script:
SQL Server “Quick n dirty” Restore Generator: