Try with the following macro
Sub CleanUp ActiveDocument.RemoveVariable "vVar"End Sub
the variable will be deleted completely from your script, as if you go to Settings menu, Variable Overview and delete it.
Besides, opening on server (via ajax, plugin) is likely not to trigger OnOpen and OnPostReload macros properly. In this case, you should create a different event.
Hope that helps