class_docstr: Delete a resource in a kubernetes.
code: def execute(self, context) -> None:
      resources = yaml.safe_load_all(self.yaml_conf)
      if not self.custom_resource_definition:
          delete_from_yaml(
              k8s_client=self.client,
              yaml_objects=resources,
              namespace=self.get_namespace(),
          )
      else:
          k8s_resource_iterator(
              self.delete_custom_from_yaml_object, resources
          )
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING
  import yaml
  from kubernetes.utils import create_from_yaml
  from airflow.models import BaseOperator
  from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
  from airflow.providers.cncf.kubernetes.utils.delete_from import delete_from_yaml
  from airflow.providers.cncf.kubernetes.utils.k8s_resource_iterator import k8s_resource_iterator
label_desc: Use image node_id 2 for calling the KubernetesDeleteResourceOperator obj's underlying member method code with example usage: obj.execute(context) without return types