Jassen,

Based upon the %temp% variable this should work fine. However you could +R attribs or the file could be in use and it would not delete.

code:
DEL "%TEMP%\*.tmp"
DEL "%TEMP%\*.CHK"
DEL "%TEMP%\~*.*"

Very quick simple code. Not bullet proof and not a search and destroy method. Here is another example also.

code:
If @InWin = 1
RUN '%COMSPEC% RD /S /Q %TEMP%'
EndIf
If @InWin = 2
Shell "%COMSPEC% DelTree /Y %TEMP%"
EndIf