This isn't exactly the code I was looking for. But, it shows how to use the FilesystemObject Library to instantiate file and folder objects. With that, you can get the members of objects within a directory. You will have to use early binding and make a reference.
Code:
'Delete the PDF files in the temp folder
Dim strFile As String
strFile = \\Server\Folder\Temp
Dim fsoFile As New FileSystemObject
Dim objFolder As Folder
Dim objFile As File
Set objFolder = fsoFile.GetFolder(strFile)
For Each objFile In objFolder.Files
If InStr(objFile.Name, ".PDF") Then
objFile.Delete True
End If
Next
Set objFolder = Nothing
'end 'Delete the PDF files in the temp folder
Edit: Looking at the code here, I use the word file to describe things that are actually folders. A little confusing, sorry.