code: def RemoveActiveConnection(self, dev_path, active_connection_path):
      '''Remove the specified ActiveConnection.
  
      You have to specify the device to remove the connection from, and the
      path of the ActiveConnection.
  
      Please note that this does not set any global properties.
      '''
      self.SetDeviceDisconnected(dev_path)
  
      NM = dbusmock.get_object(MANAGER_OBJ)
      active_connections = NM.Get(MANAGER_IFACE, 'ActiveConnections')
  
      if active_connection_path not in active_connections:
          return
  
      active_connections.remove(dbus.ObjectPath(active_connection_path))
      NM.SetProperty(MANAGER_OBJ, MANAGER_IFACE, 'ActiveConnections', active_connections)
  
      self.object_manager_emit_removed(active_connection_path)
      self.RemoveObject(active_connection_pathf RemoveActiveConnection(self, dev_path, active_connection_path):
      '''Remove the specified ActiveConnection.
  
      You have to specify the device to remove the connection from, and the
      path of the ActiveConnection.
  
      Please note that this does not set any global properties.
      '''
      self.SetDeviceDisconnected(dev_path)
  
      NM = dbusmock.get_object(MANAGER_OBJ)
      active_connections = NM.Get(MANAGER_IFACE, 'ActiveConnections')
  
      if active_connection_path not in active_connections:
          return
  
      active_connections.remove(dbus.ObjectPath(active_connection_path))
      NM.SetProperty(MANAGER_OBJ, MANAGER_IFACE, 'ActiveConnections', active_connections)
  
      self.object_manager_emit_removed(active_connection_path)
      self.RemoveObject(active_connection_path)
docs: Remove the specified ActiveConnection.
  
      You have to specify the device to remove the connection from, and the
      path of the ActiveConnection.
  
      Please note that this does not set any global properties.