This documentation is for WSO2 Private PaaS 4.1.0. View documentation for the latest release.
Page Comparison - Deleting an Application (v.2 vs v.3) - WSO2 Private PaaS 4.1.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can remove an application using the CLI tool, REST API or the Private PaaS console (UI) PPaaS Console as shown below:

 

Localtab Group
Localtab
activetrue
titleCLI

Deleting an application via the CLI

Overview
CLI commandremove-application
DescriptionDelete an application.
Command format
Code Block
remove-application <APPLICATION_ID>
Parameter definition
Short optionLong optionDescriptionRequiredExample value
N/AN/AUnique ID of the applicationYeswso2am-190-application
Example

Delete an application named wso2am-190-application.

Code Block
remove-application wso2am-190-application
Sample output
Code Block
Application deleted successfully: [application] wso2am-190-application
Localtab
titleREST API

Deleting an application via the REST API

Overview
DescriptionDelete an application.
Resource Path

/applications/{applicationId}

HTTP MethodDELETE
Request/Response Format

application/json

Command format
Code Block
curl -X DELETE -H "Content-Type: application/json" -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/applications/{applicationId}
Info
  • By default, <USERNAME>:<PASSWORD> is admin:admin.
  • By default, <PRIVATE_PAAS_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <PRIVATE_PAAS_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
Example

Delete an application named wso2am-190-application.

Code Block
curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application
Sample output
Code Block
> 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.

Localtab
titlePrivate PaaS consolePPaaS Console

Deleting an application via

the Private PaaS console

the PPaaS Console

Follow the instructions below to delete an application:

  1. Click Applications on the home page.
    Image Added
  2. Hover the mouse pointer over the application you wish to delete for the Delete button to appear and click Delete.
    Image Added
  3. Click Yes to delete the application.

 

...