Destroy the Origin object
Destroy(Ctrl = OCD_DEL_LINKED_OBJS | OCD_DEL_PARENT_IF_LAST)
Returns True on successful exit (the OriginObject was destroyed) and False on failure.
EX1
import PyOrigin wks=PyOrigin. ActivePage() if wks.IsValid(): print('wks object is valid\n') wks.Destroy() if wks.IsValid(): print("Still valid (but shouldn't be)\n") else: print('No longer valid\n') else: print('There was a problem\n')