Following on Beta's footsteps, if you want to get rid of the empty folder as well, make a substitution of that line for:
deltree C:\TEMP
Yet assuming the TEMP dir is C:\TEMP.
There are other codes just to make the script fancy, but are interesting to know:
echo off - in a single line, disables the screen log of the next batch commands you have written after this, until you switch it to "on".
echo "put your favorite text here" - (without the quotes) displays text in a single line. If larger than screen, text is automatically wrapped.
@ "any command" - (without the quotes) same as "echo off", but using this you hide only this command.
pause - prompts a default text requesting any input (eg. pushing a keyboard key) from the user in order to continue the batch workflow. Can also be used with text after the "pause" command.
There are even other options if you want to go a little bit far on programming batch language, but this is definitely not my area of expertise.

Anyway, here's an example:
IF EXIST C:\TEMP GOTO "TEMPDEL"
IF ERRORLEVEL 2 GOTO "EXIT"
:TEMPDEL
deltree C:\TEMP
:EXIT
win
This can be wrong, I believe there's some order to be followed. Anyway, that should be enough for your needs.
