Setting it to null is fine. Your process variable could be used in many other places in the process, for example data input/output associations, expressions etc. Removing it would mean a possibly cascating effect which could cause runtime issues. Could add a convenience method that set it to null as you are doing now but I would not call it "removeVariable".
Hope this helps.