I see no way to remove a variable from memory in the Groovy shell ... is this possible? How should I do it? I see methods for operations in Beanshell and Javascript (Rhino), but not in Groovy.
I believe you can do:
binding.variables.remove 'varname'
Or, if you want to delete all variables, then
purge variables
should work well