Here is a script to delete *.tmp files and and temporary folder.
An easy one !
#Include <File.au3>
#Include <Array.au3>
$Debug=0
Func EmptyFolder($FolderToDelete)
$AllFiles=_FileListToArray($FolderToDelete,"*",0)
If $Debug Then MsgBox(0,"",$FolderToDelete)
If IsArray($AllFiles) Then
If $Debug Then
_ArrayDisplay( $AllFiles,$FolderToDelete)
EndIf
For $i = 1 To $AllFiles[0]
FileDelete($FolderToDelete & "\" & $Al