def destroy(self):
        self._endpoint.unregisterInterface(self)
        self._endpoint = None

        self._namespace.unregisterInterface(self)
        self._namespace = None

        # Endpoint should destroy all connections
        assert len(self._connections) == 0

        super(Interface, self).destroy()
Method should be called to destroy the interface and will take care
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/core/network.py/Interface.destroy