You can remove a global variable that has previously been defined by calling a removeGlobalVariable(String variableName) of the ALH API.
 

public void removeGlobalVariable(String variableName) {
...
}