Well I don't know Cold Fusion so the best I can do is show you a script that I use to search a folder and delete certain files
<% @ language= vbscript%>
<% dim strPathInfo, strPhysicalPath 'The following script checks the report file for PDF files and deletes old ones
strPhysicalPath = "directory/foldername"
Dim objFSO,objFile, objFileItem, objFolder, objFolderContents
set objFSO = CreateObject("Scripting.FileSystemObject"
Set objFile = objFSO.GetFolder(strPhysicalPath)
Set objFolder = objFile.Files
for each objFileItem in objFolder ' finding all PDF files that are more than 1 day old and deleting them
if instr(1,objFileItem.Name,".pdf"

> 0 and (dateDiff("D",objFileItem.DateCreated,Date))>1 then
objFileItem.delete
end if
Next
%>
I hope that this helps some at least.
Good luck