Delete workflow¶
Deletes a workflow and its versions, triggers, and execution records. This cannot be undone.
DELETE https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps/{workflow_id}
Before you call¶
Use Get workflow details to confirm the workflow. Prepare a personal access token with workflow delete permission and the target workspace ID.
Path parameters¶
Replace $AI_STUDIO_API_KEY, $WORKSPACE_ID, and $WORKFLOW_ID with your own values.
curl -X DELETE "https://moi.matrixorigin.cn/newmoi/workflow/v2/workflow-apps/$WORKFLOW_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Workflow ID to delete. |
Successful response¶
Returns 200. deleted is true when the workflow has been deleted.
{"code": "OK", "msg": "OK", "data": {"deleted": true}}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
boolean |
Whether the workflow was deleted. |
Error response¶
{"code": "ErrConflict", "msg": "Resource state conflict", "data": null}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
null |
Empty on error. |
Next steps¶
Use List workflows with the same filters to confirm that the workflow is no longer returned.