'Remove a ref.
:param name: Name of the ref to remove'

def __delitem__(self, name):

    if (name.startswith('refs/') or (name == 'HEAD')):
        del self.refs[name]
    else:
        raise ValueError(name)
