Deletes one or more jobs in a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteJobs

The operation that you want to perform. Set the value to DeleteJobs.

ClusterId String Yes ehpc-hz-FYUr32****

The ID of the cluster.

You can call the ListClusters operation to query the cluster ID.

Jobs String Yes [{"Id": "0.sched****"},{"Id": "1.sched****"}]

The list of jobs that you want to delete. Maximum number of jobs: 100. Minimum number of jobs: 1.

Format: [{"Id": "0.sched****"},{"Id": "1.sched****"}]. Separate multiple jobs with commas (,).

You can call the ListJobs operation to query the job ID.

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE7****

The ID of the request.

Examples

Sample requests

https://ehpc.cn-hangzhou.aliyuncs.com/?Action=DeleteJobs
&ClusterId=ehpc-hz-FYUr32****
&Jobs=[{"Id":"1.sched****"},{"Id":"0.sched****"}]
&<Common request parameters>

Sample success responses

XML format

<DeleteJobsResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE7****</RequestId>
</DeleteJobsResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****"
}

Error codes

HttpCode Error code Error message Description
406 AgentError.Job.DeleteFailure Failed to delete job: %s The error message returned because the following jobs have failed to be deleted: {}.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The error message returned because the request has failed. The service is temporarily unavailable.

For a list of error codes, visit the API Error Center.