func (*ClusterClient) Delete(ctx context.Context, slug string) error
Delete a cluster by its slug.
Parameters
The slug of the cluster to delete
Returns
An error if the cluster could not be deleted.
err := client.Clusters.Delete(ctx,
"my-cluster-tZD9Ca1qsqt3V"
)
Errors
The specified cluster does not exist.