deleteFlowVersions
deleteFlowVersions(
connection,candidates):Promise<{deleted:string[];failures:FlowVersionPruneFailure[]; }>
Defined in: flowVersionPrune.ts:65
Destroys each Flow version, one Tooling API call per candidate, in order. Per-version failures are collected, never thrown.
Parameters
Section titled “Parameters”connection
Section titled “connection”Connection
The org to delete from.
candidates
Section titled “candidates”readonly FlowVersionPruneCandidate[]
The versions to delete, typically from findObsoleteFlowVersions.
Returns
Section titled “Returns”Promise<{ deleted: string[]; failures: FlowVersionPruneFailure[]; }>
One deleted entry (the Flow’s DeveloperName) per version destroyed, and any failures.