docstr: Method: delete custom resource object to uninstall milvus
  Params:
      release_name: release name of milvus
      namespace: namespace that the milvus is running in
      delete_depends: whether to delete the dependent etcd, pulsar and minio services. default: True
      delete_pvc: whether to delete the data persistent pvc volumes. default: True
docstr_tok: ["Method",":","delete","custom","resource","object","to","uninstall","milvus","Params",":","release_name",":","release","name","of","milvus","namespace",":","namespace","that","the","milvus","is","running","in","delete_depends",":","whether","to","delete","the","dependent","etcd",",","pulsar","and","minio","services",".","default",":","True","delete_pvc",":","whether","to","delete","the","data","persistent","pvc","volumes",".","default",":","True"]
code: def uninstall(
      self,
      release_name,
      namespace="default",
      delete_depends=True,
      delete_pvc=True,
  ):
      """
      Method: delete custom resource object to uninstall milvus
      Params:
          release_name: release name of milvus
          namespace: namespace that the milvus is running in
          delete_depends: whether to delete the dependent etcd, pulsar and minio services. default: True
          delete_pvc: whether to delete the data persistent pvc volumes. default: True
      """
      cus_res = CusResource(
          kind=self.plural,
          group=self.group,
          version=self.version,
          namespace=namespace,
      )
      del_configs = {}
      if delete_depends:
          del_configs = {
              "spec.dependencies.etcd.inCluster.deletionPolicy": "Delete",
              "spec.dependencies.pulsar.inCluster.deletionPolicy": "Delete",
              "spec.dependencies.storage.inCluster.deletionPolicy": "Delete",
          }
      if delete_pvc:
          del_configs.update(
              {
                  "spec.dependencies.etcd.inCluster.pvcDeletion": True,
                  "spec.dependencies.pulsar.inCluster.pvcDeletion": True,
                  "spec.dependencies.storage.inCluster.pvcDeletion": True,
              }
          )
      if delete_depends or delete_pvc:
          self.upgrade(release_name, del_configs, namespace=namespace)
      cus_res.delete(release_name)
  
file_path: milvus/tests/python_client/customize/milvus_operator.py
imports: import json
  import os
  import time
  from benedict import benedict
  from utils.util_log import test_log
  from common.cus_resource_opts import CustomResourceOperations
label_desc: Use image node_id 4 for calling the MilvusOperator obj's underlying member method code with example usage: obj.uninstall(release_name, namespace, delete_depends, delete_pvc) without return types