You can remove an application using the CLI tool, REST API or the PPaaS Console as shown below:
Deleting an application via the CLI
Overview
CLI command | remove-application |
Description | Delete an application. |
Command format | remove-application <APPLICATION_ID> |
Parameter definition
Short option | Long option | Description | Required | Example value |
---|---|---|---|---|
N/A | N/A | Unique ID of the application | Yes | wso2am-190-application |
Example
Delete an application named wso2am-190-application.
remove-application wso2am-190-application
Sample output
Application deleted successfully: [application] wso2am-190-application
Deleting an application via the REST API
Overview
Description | Delete an application. |
Resource Path |
|
HTTP Method | DELETE |
Request/Response Format |
|
Command format | curl -X DELETE -H "Content-Type: application/json" -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/applications/{applicationId}
|
Example
Delete an application named wso2am-190-application.
curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application
Sample output
> DELETE /api/applications/wso2am-190-application HTTP/1.1 > Host: localhost:9443 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > < HTTP/1.1 200 OK < Date: Mon, 12 Oct 2015 04:35:53 GMT < Content-Type: application/json < Transfer-Encoding: chunked < Server: WSO2 Carbon Server < {"status":"success","message":"Application deleted successfully: [application]
You will come across the following HTTP status codes while deleting an application:
HTTP status code | 200, 500 See the descriptions of the HTTP status codes here. |
Deleting an application via the PPaaS Console
Follow the instructions below to delete an application:
- Click Applications on the home page.
- Hover the mouse pointer over the application you wish to delete for the Delete button to appear and click Delete.
- Click Yes to delete the application.
Overview
Content Tools
Activity