Agree with Richard's points as well.

Here is a link to the UDF though that I think Les was referring to.

CleanDirectory() - Cleans up the temporary directories (or any arbitrary directory)
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=82117