“cmd.reinitialize” reinitializes the program by deleting all objects and restoring the default program settings.
def reinitialize(what='everything', object=''):
reinitialize | api