code: func (d *resetCmd) run() error {
  	if d.kubeClient == nil {
  		_, c, err := getKubeClient(settings.KubeContext, settings.KubeConfig)
  		if err != nil {
  			return fmt.Errorf("could not get kubernetes client: %s", err)
  		}
  		d.kubeClient = c
  	}
  
  	res, err := d.client.ListReleases(
  		helm.ReleaseListStatuses([]release.Status_Code{release.Status_DEPLOYED}),
  	)
  	if !d.force && err != nil {
  		return prettyError(err)
  	}
  
  	if !d.force && res != nil && len(res.Releases) > 0 {
  		return fmt.Errorf("there are still %d deployed releases (Tip: use --force to remove Tiller. Releases will not be deleted.)", len(res.Releases))
  	}
  
  	if err := installer.Uninstall(d.kubeClient, &installer.Options{Namespace: d.namespace}); err != nil {
  		return fmt.Errorf("error unstalling Tiller: %s", err)
  	}
  
  	if d.removeHelmHome {
  		if err := deleteDirectories(d.home, d.out); err != nil {
  			return err
  		}
  	}
  
  	fmt.Fprintln(d.out, "Tiller (the Helm server-side component) has been uninstalled from your Kubernetes Cluster.")
  	return nil
  }
docs: // runReset uninstalls tiller from Kubernetes Cluster and deletes local config