code: func (spm *KubeStaticPodPathManager) CleanupDirs() error {
  	var errlist []error
  	if err := os.RemoveAll(spm.TempManifestDir()); err != nil {
  		errlist = append(errlist, err)
  	}
  	if !spm.keepManifestDir {
  		if err := os.RemoveAll(spm.BackupManifestDir()); err != nil {
  			errlist = append(errlist, err)
  		}
  	}
  
  	if !spm.keepEtcdDir {
  		if err := os.RemoveAll(spm.BackupEtcdDir()); err != nil {
  			errlist = append(errlist, err)
  		}
  	}
  
  	return utilerrors.NewAggregate(errlist)
  }
docs: // CleanupDirs cleans up all temporary directories except those the user has requested to keep around