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 PlatformRPAWorkflowsArazzoWorkflows
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
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
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
Stop the flow so its trigger cannot start a new run between this check and the delete.
4
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.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.