# Delete workflow

Tool: `veryfront__delete_workflow`

Delete the source file of a workflow that is no longer needed; returns the acknowledgement ok: true. Requires project.runs.write.

## Arguments

| Name                 | Type                  | Required | Description                                |
| -------------------- | --------------------- | -------- | ------------------------------------------ |
| `project_reference`  | string                |          | Project ID or slug that owns the workflow. |
| `workflow_id`        | string · min length 1 | Yes      | Existing workflow identifier to delete.    |
| `source_target_kind` | string                |          | Provide the source target kind.            |
| `target_branch_id`   | string · uuid \| null |          | Provide the target branch id.              |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_workflow",
    "arguments": {
      "workflow_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
