vsphere/internal/helper/clustercomputeresource/cluster_compute_resource_helper.go
func Delete(cluster *object.ClusterComputeResource) error {
	log.Printf("[DEBUG] Deleting compute cluster %q", cluster.InventoryPath)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	task, err := cluster.Destroy(ctx)
	if err != nil {
		return err
	}
	return task.Wait(ctx)
}
func Delete(cluster *object.ClusterComputeResource) error {
	log.Printf("[DEBUG] Deleting compute cluster %q", cluster.InventoryPath)
	ctx, cancel := context.WithTimeout(context.Background(), provider.DefaultAPITimeout)
	defer cancel()
	task, err := cluster.Destroy(ctx)
	if err != nil {
		return err
	}
	return task.Wait(ctx)
}
// Delete destroys a ClusterComputeResource.