Method description
Deletes an App resource or a specified App version.
Call method
DeleteAppResponse deleteApp(String appName) throws ClientException;DeleteAppResponse deleteApp(String appName, String qualifier) throws ClientException;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
try{DeleteAppResponse response = client.deleteApp("myApp");//The method is successfully called.}catch(ClientException e){e.printStackTrace();//The method fails to be called.}