I am creating a Python add-in for ArcMap, which on click, will disconnect the feature from Geometric Network and then delete it from the feature class. But ArcPy doesn't have any method to disconnect the feature. So, I looked in ArcObjects and there they have method disconnect in INetworkFeature. I am a Python developer and don't know ArcObjects ecosystem. How can I do this?
Assumption of this add-in is that Geometric Network is added to ArcMap, the editor is started and you have selected the feature which you want to disconnect and delete from feature class.