Skip to main content
func (*ClusterClient) Delete(ctx context.Context, slug string) error
Delete a cluster by its slug.

Parameters

slug
string
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

not_found
cluster not found
The specified cluster does not exist.