Method description
Deletes a job by specifying the job ID.
Note: This API can be called only when the job is in Stopped, Terminated, or Failed state.
Parameter description
| Parameter | Type | Description |
|---|---|---|
| jobId | String | Job ID |
Response description
If deletion succeeds, a DeleteJobResponse instance is returned.
If deletion fails, a ClientException is thrown.
Sample code
try{DeleteJobResponse response = client.deleteJob("job-0101010299123");//Deletion succeeded}catch(ClientException e){e.printStackTrace();//Deletion failed}