All Products
Document Center


Last Updated: May 11, 2018

Method description

Deletes an App resource or a specified App version.

Call method

  1. DeleteAppResponse deleteApp(String appName) throws ClientException;
  2. DeleteAppResponse deleteApp(String appName, String qualifier) throws ClientException;
  3. DeleteAppResponse deleteApp(DeleteAppRequest req) throws ClientException;

Parameter description

Parameter Type Required Description
appName String Yes Name of the App
qualifier String No Version number of the App. If this parameter is not specified, the system deletes the entire App

Response description

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

  • If the call fails, a ClientException is thrown.

Sample code

  1. try{
  2. DeleteAppResponse response = client.deleteApp("myApp");
  3. //The method is successfully called.
  4. }catch(ClientException e){
  5. e.printStackTrace();
  6. //The method fails to be called.
  7. }