Linux -
find /path/to/files* -mtime +5 -exec rm {} \;

 

Windows -
forfiles /p "D:\Backups\archive" /s /m *.* /c "cmd /c Del @path" /d -30

 

Advertisements