unset %times unset %timestotal unset %number unset %upper unset %numalp unset %char
can be shortened into
unset %times %timestotal %number %upper %numalp %char
or instead of using /set you can use /var to make it local and they will automatically be unset after script is done processing