Skip to content

pruneObsoleteFlowVersions

pruneObsoleteFlowVersions(connection, flowNames, options?): Promise<FlowVersionPruneResult>

Defined in: flowVersionPrune.ts:101

Deletes the obsolete versions of the named Flows: findObsoleteFlowVersions, then, unless options.dryRun, deleteFlowVersions. Unlike deleteFlows, this never removes an active Flow.

Connection

The org to prune.

readonly string[]

Flow DeveloperNames.

PruneObsoleteFlowVersionsOptions = {}

Dry run and stage callback.

Promise<FlowVersionPruneResult>

The obsolete versions found, what was deleted, and any per-version failures.