code: func (d *namespacedResourcesDeleter) deleteEachItem(gvr schema.GroupVersionResource, namespace string) error {
  	klog.V(5).Infof("namespace controller - deleteEachItem - namespace: %s, gvr: %v", namespace, gvr)
  
  	unstructuredList, listSupported, err := d.listCollection(gvr, namespace)
  	if err != nil {
  		return err
  	}
  	if !listSupported {
  		return nil
  	}
  	for _, item := range unstructuredList.Items {
  		background := metav1.DeletePropagationBackground
  		opts := &metav1.DeleteOptions{PropagationPolicy: &background}
  		if err = d.dynamicClient.Resource(gvr).Namespace(namespace).Delete(item.GetName(), opts); err != nil && !errors.IsNotFound(err) && !errors.IsMethodNotSupported(err) {
  			return err
  		}
  	}
  	return nil
  }
docs: // deleteEachItem is a helper function that will list the collection of resources and delete each item 1 by 1.