def METHOD_NAME(
    self, prepared_controller_configuration: BaseNodesConfig, cluster_configuration
):
    clusters_tf_folders = glob(f"{consts.TF_FOLDER}/*")
    destroyed_clusters = 0
    def onerror(*args):
        log.error(f"Error while attempting to delete {args[1]}, {args[2]}")
    for cluster_dir in clusters_tf_folders:
        tfvar_files = glob(f"{cluster_dir}/*/{consts.TFVARS_JSON_NAME}", recursive=True)
        resources_deleted = False
        for tfvar_file in tfvar_files:
            with SuppressAndLog(Exception):
                with open(tfvar_file) as f:
                    tfvars = json.load(f)
                for key, value in tfvars.items():
                    if key == "cluster_name":
                        value = ClusterName(value)
                    if hasattr(cluster_configuration, key):
                        setattr(cluster_configuration, key, value)
                    if hasattr(prepared_controller_configuration, key):
                        setattr(prepared_controller_configuration, key, value)
                platform = cluster_configuration.platform or PlatformType.BAREMETAL
                parent_folder = Path(tfvar_file).resolve().parent
                if platform != parent_folder.stem:
                    continue
                # iso is not needed for destroy
                dummy_iso_path = Path(parent_folder).resolve() / "dummy.iso"
                cluster_configuration.iso_download_path = str(dummy_iso_path)
                cluster_configuration.worker_iso_download_path = str(dummy_iso_path)
                dummy_iso_path.touch(exist_ok=True)
                controller = self.get_terraform_controller(prepared_controller_configuration, cluster_configuration)
                config_vars = controller.get_all_vars()
                controller.tf.set_vars(**config_vars)
                controller.destroy_all_nodes()
                destroyed_clusters += 1
                resources_deleted = True
        log.debug(f"Successfully deleted {cluster_dir} resources")
        if resources_deleted:
            shutil.rmtree(cluster_dir, onerror=onerror)
    log.info(f"Successfully destroyed {destroyed_clusters} clusters")