or you can name your variables like %on.join %on.part or whatever and unset them all one shot by typing /unset %on.*
* becomes a wildcard so anything after before the * if theres a match it will unset
thats why you see many scripters write their script with something like %mine.a %mine.b %mine.c %mine.d so they all could unset it one shot if needed with a wildcard