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

workflow_id

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

code

string

OK on success.

msg

string

OK on success.

data.deleted

boolean

Whether the workflow was deleted.

Error response

{"code": "ErrConflict", "msg": "Resource state conflict", "data": null}

Field

Type

Description

code

string

Error code.

msg

string

Error message.

data

null

Empty on error.

Next steps

Use List workflows with the same filters to confirm that the workflow is no longer returned.

Last updated on