Delete all sources in the pipeline programatically?

Is there a way to delete all the sources with their “child’s” and everything in the pipeline programmatically?

Something like

for x in GetSources():
    Delete(x)

?

for x in GetSources().values():
  Delete(x[0])
1 Like

My experience with PV5.8 is that this is not sufficient because it does not clean memory. I much prefer a

ResetSession()

What do you think?

I do prefer ResetSession, but it does much more than just deleting the sources.

1 Like