I was able to run the script below but doesn't remove any directories I know I am missing something for the directories?
REM Remove files older than 14 days
forfiles -p "M:\14DAYTEMP" /q /s /m *.* /c "cmd /c Del @path" d- 14
forfiles /p "M:\14DAYTEMP" /s /m *.* /c "cmd /c if @ISDIR== TRUE RD /q @FILE &RD /Q /S @FILE" d- 14