Skip to content

Deleted flow still referenced by a deployment

Symptoms

You may experience this issue if:

  • A flow used by a deployment was deleted.
  • The deployment configuration still references the deleted flow, but you cannot remove or replace it.

Causes

This issue can occur when a flow was deleted while it was still assigned to an existing deployment.

Deployment flow settings showing unlabeled nodes from a deleted flow
Flow settings tab showing unlabeled flow after the referenced flow was deleted. However, the flow cannot be removed from the deployment.

Solutions

Delete the deployment and create a new one

If the flow used by the deployment was deleted, you cannot remove it from the deployment configuration. In this case, you need to delete the entire deployment.

⚠️ Warning

Deleting a deployment removes all its configuration, including output mappings and settings. Make sure to note your configuration before deleting.

  1. Go to the Deployments page.
  2. Delete the deployment that references the deleted flow.
  3. Create a new deployment.
  4. Add the correct flow and configure the output mappings.

Expected result: The new deployment is configured with the correct flow and output mappings.

💡 Tip

Avoid deleting flows that are actively used by deployments. If you need to replace a flow, first remove it from all deployments, then delete it.