Uninstalling applications with the wsadmin tool

 

Uninstalling applications with the wsadmin tool

Before starting this task, the wsadmin tool must be running. See Starting the wsadmin scripting client for more information.

Steps to uninstall an application follow:

  1. Uninstall the application:

    Specify the name of the application you want to uninstall, not the name of the Enterprise ARchive (EAR) file.

    • Using Jacl:
      $AdminApp uninstall application1

    • Using Jython:
      AdminApp.uninstall('application1')

    where:

    $ is a Jacl operator for substituting a variable name with its value
    AdminApp is an object supporting application objects management
    uninstall is an AdminApp command
    application1 is the name of the application to uninstall

  2. Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.

  3. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.

ResultUninstalling an application removes it from the WebSphere Application Server configuration and from all the servers that the application was installed on. The application binaries (EAR file contents) are deleted from the installation directory. This occurs when the configuration is saved for single server WebSphere Application Server editions or when the configuration changes are synchronized from deployment manager to the individual nodes for network deployment configurations.