def remove(cls, repo: "Repo", name: str) -> str:
        """Remove the remote with the given name.

        :return:
            The passed remote name to remove
        """
        repo.git.remote("rm", name)
        if isinstance(name, cls):
            name._clear_cache()
        return name
Remove the remote with the given name.

        :return:
            The passed remote name to remove
        
git/remote.py