How do I reset the Create Stage Programmatically?

In the Physics Demo scene(s), it resets the USD Stage when you load a demo scene, I’m assuming there are some hidden Python commands that are doing that (resetting the Create stage).

What are those commands?

Hi,
the python core code to fire up the demos should be here:
extsPhysics\omni.physx.demos\python_init_.py

This is how it looks like:
def _open_new_stage_with_scene(self):
def new_stage():
omni.kit.stage_templates.new_stage_with_callback(on_new_stage_fn=self._on_stage_opened, template=“empty”)
omni.kit.window.file.prompt_if_unsaved_stage(new_stage)

def _on_stage_opened(self, res, err):
    stage = omni.usd.get_context().get_stage()    
    self._demo_instance = self._selected_demo_class()   
    self._demo_instance.on_startup()         
    current_params = {key: model.get_value() for key, model in self._config_params.items()}
    self._demo_instance.create(stage, **current_params)

Regards,
Ales