Over the years, especially before there were local variables, I created a whole series of global variables. Plus, there are a bunch that I still create as it is easier than passing parameters (at least for me).
When I searched for this all I found was how to delete a list of variables, so I'm posting this here for those who would like to clean out all global variables at once. Obviously, use this with caution.
Thanks for the reply. I guess I just wasn't using the right key words to search. I tried delete all variables and loop through variables. I also didn't know about the preference panel having them there. But, I wanted to do it programmatically anyways.
Of course one can add a test saying if the variable <> X or Y or Z (via a switch) then delete it.