ds_delete_process_instance
Permanently deletes a finished DolphinScheduler workflow instance and its task records. Stop running instances first; deletion is irreversible and does not affect the workflow definition.
Instructions
Permanently delete a finished workflow instance and its task records.
Irreversible. DolphinScheduler rejects deleting a RUNNING instance; stop it first with ds_stop_process_instance. Does not affect the workflow definition.
Args: project_name: Project name process_instance_id: Instance ID (from ds_list_process_instances)
Returns: {"process_instance_id": int, "status": "deleted"}
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>",
"process_instance_id": "<process_instance_id>"
},
"name": "ds_delete_process_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| process_instance_id | Yes |