forfiles /s /c "cmd /c (if NOT @ext==\"dqy\" del /s /q @path)" /D -14
This is about as simple as I could get this script. They wanted to keep the macro files (.dqy) but recursively delete everything else older than 14 days.
Runs in the current directory (be careful when testing).