Microsoft Power Automate · Arazzo Workflow
Microsoft Power Automate Retire a Flow Safely
Version 1.0.0
Check a flow for in-flight runs, deactivate it, and then delete it.
View Spec
View on GitHub
AutomationBusiness ProcessIntegrationLow-CodeMicrosoftPower PlatformRPAWorkflowArazzoWorkflows
Provider
Workflows
retire-flow
Deactivate and delete a flow after confirming no runs are in flight.
Captures the flow record for the audit trail, inspects the run history for in-flight executions, stops the flow, and deletes it.
1
captureFlowRecord
getFlow
Read the flow one last time so its display name, creator, and definition summary are captured for the retirement record before deletion removes them.
2
checkRunHistory
listFlowRuns
List the flow's run history and check for executions still in flight. A Running or Waiting run means the flow should not be deleted yet.
3
deactivateFlow
turnOffFlow
Stop the flow so its trigger cannot start a new run between this check and the delete.
4
deleteFlow
deleteFlow
Delete the now-quiet flow from the environment. This is irreversible; the captured flow record from the first step is the only remaining trace.