code: def delete_branch(self, repo, branch, prefix):
          
          # make sure that the name of the branch begins with pyup.
          assert branch.startswith(prefix)
          obj = repo.branches.get(branch)
          obj.delete()
docs: Deletes a branch.
          :param repo: github.Repository
          :param branch: string name of the branch to delete