delete_flow
Permanently delete a flow from Langflow to remove obsolete workflows or clean up test flows. This operation is irreversible.
Instructions
Permanently remove a single flow from Langflow instance.
Purpose: Delete flows that are no longer needed, removing obsolete workflows, or cleaning up test/development flows. This operation is destructive and irreversible - deleted flows cannot be recovered unless previously backed up via download_flows.
Parameters:
flow_id (required, UUID string): Unique identifier of flow to delete (from list_flows or get_flow)
Returns: Success object containing:
success (boolean): true if deletion succeeded
message (string): Confirmation message
Usage Examples:
Delete single flow: { flow_id: "550e8400-e29b-41d4-a716-446655440000" }
Remove test flow: { flow_id: "test-flow-uuid" }
Best Practices:
Download flow backup with download_flows before deletion if you might need it later
Verify flow_id is correct using get_flow before deleting to avoid mistakes
Check if flow is used in production or referenced by other systems before deletion
Document why flow was deleted for audit purposes
For deleting multiple flows, use delete_flows (batch operation) instead
Review flow contents one final time before permanent removal
Consider archiving flows to dedicated folder instead of deleting
Ensure no running jobs or active sessions using this flow
Common Errors:
"Flow not found": flow_id doesn't exist or already deleted (verify with list_flows)
"Invalid UUID format": flow_id must be valid UUID string
"Cannot delete running flow": Flow has active execution (wait for completion or cancel)
"flow_id is required": Must provide flow_id parameter
"Unauthorized": API key lacks permission to delete this flow
"Flow is referenced": Flow is used as component in other flows (remove references first)
Related Tools:
download_flows: Backup flow before deletion for potential recovery
list_flows: Find flow_id for flows to delete
get_flow: Inspect flow before deletion to confirm it's the right one
delete_flows: Delete multiple flows at once (more efficient for bulk operations)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | Yes | The ID of the flow to delete |