Retire a Flow Safely
A 4-step recipe with Microsoft Power Automate. We can help you get access.
Recipe · 4 steps
Retire a Flow Safely
Deactivate and delete a flow after confirming no runs are in flight.
- Read the flow one last time so its display name, creator, and definition summary are captured for the retirement record before deletion removes them.
- 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.
- Stop the flow so its trigger cannot start a new run between this check and the delete.
- Delete the now-quiet flow from the environment. This is irreversible; the captured flow record from the first step is the only remaining trace.
What you'll need to have ready
- environmentName: The name of the environment holding the flow.
- flowName: The name or ID of the flow to retire.
For your developer
Arazzo workflow microsoft-power-automate:retire-flow, 4 operations: getFlow → listFlowRuns → turnOffFlow → deleteFlow. Specs on APIs.io.