After searching in the documentation I found the following:
Code:
<vizact>.removeEvent
Deletes an EventFunction object
<vizact>.removeEvent( eventFunctionObj )
eventFunctionObj
Remarks
Uses this when you no longer need an EventFunction callback.
Return Value
None
Example
eventFunction = vizact.onupdate( 5, doSomething )
...
vizact.removeEvent( eventFunction )