Delete a chat flow
delete_flowDelete a chat flow and its run history. Cannot be undone; nothing is cancelled or sent. Refused while an entry point (an ice breaker or menu item) still starts the flow — the answer names it. Prefer set_flow_active false unless the user wants it gone. Also needs the organization's "Allow deleting via remote MCP" setting (else 403 MCP_DELETE_DISABLED). Writing also needs chat enabled for the organization and an ADMIN or OWNER role in it, and a new flow counts against the plan's flow limit (403 CHAT_FLOW_LIMIT_REACHED) — the same refusals a person gets in the app. Needs the organization's "Let AI assistants create and edit chat flows" setting (mcpFlowsEnabled; only the organization's OWNER can switch it on, in Settings → Organization → General → AI Assistants; without it the api answers 403 MCP_FLOWS_DISABLED) and a connection authorized with the flows permissions — one authorized before they existed must remove PostRite from the assistant and add it again.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"flowId": "<flowId>"
},
"name": "delete_flow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The flow's ID (from list_flows) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | No | ||
| deleted | No |