ghl_workflow_delete
Permanently deletes a workflow and stops all in-progress enrollments, removing it from the sub-account. Use only when the workflow is no longer needed.
Instructions
WORKFLOW API — limited availability: enabled for selected sub-accounts only; others get 403 WORKFLOW_API_NOT_ENABLED_FOR_LOCATION (not a token or scope problem). Suggested order: get step types -> build the definition -> validate (validate_workflow_definition, read-only) -> create (always lands in draft) -> publish via update status. Rate limits: integration daily quota + 10s burst (X-RateLimit-* headers) AND a per-sub-account budget per 10s window with reads and writes counted separately; no Retry-After is sent. Logs: default and max range 30 days; retained 60 days.
Delete Workflow
Limited availability. The workflow API is currently enabled for selected sub-accounts only; any other sub-account receives 403 WORKFLOW_API_NOT_ENABLED_FOR_LOCATION.
Delete a workflow. This also ends any enrollments in progress, so contacts currently moving through the workflow stop where they are. Treat it as permanent. Endpoint: DELETE /workflows/{workflowId} (Version header: v3; source: v3/workflows-v3.json) OAuth scopes: workflows.delete
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": {
"workflowId": "<workflowId>",
"locationId": "<locationId>"
},
"name": "ghl_workflow_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locationId | Yes | Sub-account (location) ID the workflow belongs to | |
| workflowId | Yes | Workflow ID |