ds_delete_workflow
Delete Apache DolphinScheduler workflows by code, taking them offline first and supporting single or batch deletion with independent per-code results.
Instructions
Delete workflow(s) by code (takes offline first). Supports single or batch delete.
v2.0.12: merged ds_batch_delete_workflows.
workflow_code=12345: delete single workflow
workflow_code=[12345, 67890]: batch delete (each independent; one failure doesn't block others)
Args: project_name: Project name workflow_code: Process-definition code (int for single, list for batch)
Returns: Single: {"workflow_code": int, "status": "deleted"} Batch: {"total": int, "deleted": int, "failed": int, "deleted_codes": [...], "failed_details": [...]}
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": {
"project_name": "<project_name>",
"workflow_code": "<workflow_code>"
},
"name": "ds_delete_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| workflow_code | Yes |