Delete Flow¶
Delete a specified workflow.
Prerequisite¶
The user must be the owner of the workflow.
Request Format¶
GET https://{apigw-address}/batch-processing-service/v2.1/flows
Request Parameters (URI)¶
Name  | 
Location (Path/Query)  | 
Mandatory/Optional  | 
Data Type  | 
Description  | 
|---|---|---|---|---|
flowId  | 
Query  | 
Mandatory  | 
Integer  | 
The workflow ID.  | 
userId  | 
Query  | 
Mandatory  | 
String  | 
The user ID. How to get userId>>  | 
orgId  | 
Query  | 
Mandatory  | 
String  | 
The organization ID which the user belongs to. How to get orgId>>  | 
action  | 
Query  | 
Mandatory  | 
String  | 
Fixed value: delete  | 
Response Parameters¶
Name  | 
Data Type  | 
Description  | 
|---|---|---|
data  | 
String  | 
No results will be returned if the request is successful.  | 
Error Code¶
Code  | 
Message  | 
Description  | 
|---|---|---|
62104  | 
This workflow is relied on by other workflows and cannot be deleted.  | 
The workflow cannot be deleted because other workflows have dependency on the workflow. Remove the dependency and try again.  | 
For other error codes, see Common Error Codes.
Samples¶
Request Sample¶
url: https://{apigw-address}/batch-processing-service/v2.1/flows?action=delete&flowId=yourFlowId&userId=yoruUserId&orgId=yourOrgId
method: GET
Return Sample¶
{
  "code": 0,
  "msg": "OK",
  "data": ""
}