from git import Repo [docs]def delete_remote(repo: Repo): origin = repo.remote() repo.delete_remote(origin)