Delete workflow job

Delete a workflow job record. This operation is irreversible.

HTTP
DELETE $CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/{workflow_id}/executions/{execution_id}

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First query job details to confirm that the job has reached the final state.

Request

Shell
curl -X DELETE "$CLOUDSIGMA_API_BASE/workflow/v2/workflow-apps/$WORKFLOW_ID/executions/$EXECUTION_ID" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Path parameters

ParameterTypeRequiredDescription
workflow_idstringRequiredWorkflow ID.
execution_idstringRequiredJob ID.

Successful response

When code in the response is OK and data.deleted is true, the server has deleted the job record. Deletion is irreversible.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "deleted": true
  }
}
FieldTypeDescription
codestring`OK` when successful.
msgstring`OK` when successful.
data.deletedboolean`true` indicates that the job record has been deleted.

Error response

JSON
{
  "code": "ErrNotFound",
  "msg": "资源不存在",
  "data": null
}
FieldTypeDescription
codestringError code.
msgstringReadable error message.
datanull`null` in an error response.

Follow-up operations

View workflow jobs, confirm that the job record no longer appears.

Last updated on