code: func (r *Repository) DeleteRemote(name string) error {
  	cfg, err := r.Storer.Config()
  	if err != nil {
  		return err
  	}
  
  	if _, ok := cfg.Remotes[name]; !ok {
  		return ErrRemoteNotFound
  	}
  
  	delete(cfg.Remotes, name)
  	return r.Storer.SetConfig(cfg)
  }
docs: // DeleteRemote delete a remote from the repository and delete the config