docstr: delete or uninstall a custom resource in k8s
docstr_tok: ["delete","or","uninstall","a","custom","resource","in","k8s"]
code: def delete(self, metadata_name, raise_ex=True):
      """delete or uninstall a custom resource in k8s"""
      print(metadata_name)
      try:
          api_instance = client.CustomObjectsApi()
          api_response = api_instance.delete_namespaced_custom_object(
              self.group,
              self.version,
              self.namespace,
              self.plural,
              metadata_name,
          )
          log.info(f"delete custom resource response: {api_response}")
      except ApiException as e:
          if raise_ex:
              log.error(
                  "Exception when calling CustomObjectsApi->delete_namespaced_custom_object: %s\n"
                  % e
              )
              raise Exception(str(e))
  
file_path: milvus/tests/python_client/common/cus_resource_opts.py
imports: from __future__ import print_function
  import os
  from kubernetes import client, config
  from kubernetes.client.rest import ApiException
  from utils.util_log import test_log
  from common.common_type import in_cluster_env
label_desc: Use image node_id 3 for calling the CustomResourceOperations obj's underlying member method code with example usage: obj.delete(metadata_name, raise_ex) without return types