code: def removeRemoteByName(self, name: str) -> int:
          
          remote = self.getRemote(name)
          rid = remote.uid
          self.removeRemote(remote)
          return rid
docs: Remove the remote by name.
  
          :param name: the name of the remote to remove
          :raises: RemoteNotFound