code: func deleteDirectories(home helmpath.Home, out io.Writer) error {
  	if _, err := os.Stat(home.String()); err == nil {
  		fmt.Fprintf(out, "Deleting %s \n", home.String())
  		if err := os.RemoveAll(home.String()); err != nil {
  			return fmt.Errorf("Could not remove %s: %s", home.String(), err)
  		}
  	}
  
  	return nil
  }
docs: // deleteDirectories deletes $HELM_HOME