code: func (s *Store) RemoveTemplate(ctx context.Context, name string) error {
  	p := s.templatefile(name)
  
  	if err := s.storage.Delete(ctx, p); err != nil {
  		return errors.Wrapf(err, "failed to remote template")
  	}
  
  	if err := s.rcs.Add(ctx, p); err != nil {
  		if errors.Cause(err) == store.ErrGitNotInit {
  			return nil
  		}
  		return errors.Wrapf(err, "failed to add '%s' to git", p)
  	}
  
  	if !ctxutil.IsGitCommit(ctx) {
  		return nil
  	}
  
  	return s.gitCommitAndPush(ctx, name)
  }
docs: // RemoveTemplate will delete the named template if it exists