Use wsadmin to uninstall applications

Use the AdminApp object's uninstall command to remove applications from an application server. When you uninstall an application, the application binaries are deleted from the installation directory. If you are running WebSphere Application Server Network Deployment, the application is deleted when configuration changes are synchronized from the deployment manager to the individual nodes. For more information about wsadmin, see The wsadmin administrative tool.

To install an application on an application server, follow these steps:

  1. Run the wsadmin tool.

  2. Run the uninstall command. This example command uninstalls the application named application1.

    $AdminApp uninstall application1

    Note: Specify the name of the application that you want to uninstall, not the name of the enterprise archive (EAR) file.

  3. Run the following command to save the configuration changes:

    $AdminConfig save