Delete all interpart expressions

Hello

I'd like to remove all interpart expressions in my script.
In the NX GUI there is a button "delete all references", but if I record a journal of that, I only get the code snipped for the specific references I deleted:


found1 = workPart.Expressions.RemoveInterpartReferences("%UGMGR=V3.2 PH=yzHACH6Jhqmj3C PRH=6AIADHfBhqmj3C PN=1048065 PRN=K RT=""has shape"" AT=""UG master part file"" ")

Is the a way to delete all of them? Or check which references exist and then loop trough all of them?

Thank you and Regards

https://docs.plm.automation.siemens.com/data_services/resources/nx/1899/...

According to the help, if you pass in "Nothing" to the .RemoveInterpartReferences method, all references will be removed.

Thank you very much, that works.