On this page

Automation

delete-process-flow

Can be held for approval

Delete a process flow from this project by id. Irreversible: the process flow goes with its agents and wiring. Needs the fabric:flow.delete grant.

curl -sS -X POST https://fabric.wexa.ai/mcp/$FABRIC_PROJECT_ID \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "Mcp-Session-Id: $MCP_SESSION_ID" \
  -H "content-type: application/json" -H "accept: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"delete-process-flow","arguments":{"process_flow_id":"6ab196817566f41b5c28e33a"}}}'
{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000210\",\"result\":{\"deleted\":true,\"name\":\"docs-fixture-scratch-flow-1790023297678\",\"process_flow_id\":\"6ab196817566f41b5c28e33a\",\"running_executions\":\"not cancelled — deletion is not gated on execution state\"}}"
    }
  ],
  "isError": false
}

Parameters

ParameterTypeRequiredNotes
process_flow_idstringRequiredProcess flow id to delete. Address it by id: get-process-flow resolves a name to one. A process flow in this project.
Show full response

A real response, captured from a live call to delete-process-flow:

{
  "lifecycle_id": "qlc_000210",
  "result": {
    "deleted": true,
    "name": "docs-fixture-scratch-flow-1790023297678",
    "process_flow_id": "6ab196817566f41b5c28e33a",
    "running_executions": "not cancelled \u2014 deletion is not gated on execution state"
  }
}
More details

There is no undo. Deletion is not gated on execution state: a run already in flight is neither cancelled nor waited for, so stop anything you care about first. A process flow that does not exist in this project is a 404, not a success.

It also removes the emptied container an agent leaves behind: pass the container half of an agent id (the part before the dot) when delete-agent reports container_remains.

Marked consequential: it is audited in full, and a policy rule may hold it for a person to approve. See Policy and approvals.

Every tool call works the same way: How every tool call works.