code: func (o *DrainCmdOptions) deleteOrEvictPods(pods []corev1.Pod) error {
  	if len(pods) == 0 {
  		return nil
  	}
  
  	policyGroupVersion, err := drain.CheckEvictionSupport(o.drainer.Client)
  	if err != nil {
  		return err
  	}
  
  	getPodFn := func(namespace, name string) (*corev1.Pod, error) {
  		return o.drainer.Client.CoreV1().Pods(namespace).Get(name, metav1.GetOptions{})
  	}
  
  	if len(policyGroupVersion) > 0 {
  		return o.evictPods(pods, policyGroupVersion, getPodFn)
  	} else {
  		return o.deletePods(pods, getPodFn)
  	}
  }
docs: // deleteOrEvictPods deletes or evicts the pods on the api server