All Products
Search
Document Center

Batch Compute:deleteImage

Last Updated:May 11, 2018

Method description

Deletes a specified image.

Parameter description

Parameter Type Description
imageId String ID of an image

Response description

  • If the call succeeds, a DeleteImageResponse instance is returned.

  • If the call fails, a ClientException is thrown.

Sample code

  1. try{
  2. DeleteImageResponse response = client.deleteImage("img-0101010299123");
  3. //The method is successfully called.
  4. }catch(ClientException e){
  5. e.printStackTrace();
  6. //The method fails to be called.
  7. }