unset %NumberOfDice unset %difficulty unset %temp unset %botches unset %successes unset %DiceRolled unset %rand unset %results unset %rerolls unset %total unset %rerolled
You can simply do:
unset %numberofdice %difficulty %etc
And for the coin flip, I would /help $iif