Skip to main content
func (workflowClient) UndeployRelease(
    ctx context.Context,
    workflowSlug string,
    releaseID uuid.UUID,
    clusterSlugs []string,
) (*workflows.WorkflowReleaseDeployment, error)
Remove a workflow release from one or more clusters.

Parameters

workflowSlug
string
required
The workflow slug.
releaseID
uuid.UUID
required
The ID of the workflow release to remove from clusters.
clusterSlugs
[]string
required
The clusters to remove the release from.

Returns

The result, including the release and affected clusters.
deployment, err := client.Workflows.UndeployRelease(ctx,
    workflow.Slug,
    release.ID,
    []string{"production"},
)