Programmatically uninstall packages

Hi everyone!

I am trying to uninstall some packages programmatically with my Dynamo Extension but I don’t seem to find the right way of doing that.

Has anyone tried to do so before?

I just created an issue on github as well for more details on what I’m doing. Please see here: https://github.com/DynamoDS/Dynamo/issues/9582

Let me know if you can think of something.

Thanks!