All Products
Search
Document Center

deleteJob

Last Updated: May 11, 2018

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

  1. try{
  2. DeleteJobResponse response = client.deleteJob("job-0101010299123");
  3. //Deletion succeeded
  4. }catch(ClientException e){
  5. e.printStackTrace();
  6. //Deletion failed
  7. }