Uninstall enterprise apps with wsadmin

Use the AdminApp object or the AdminApplication script library to uninstall applications.

There are two ways to complete this task. This page uses the AdminApp object to uninstall enterprise apps. Alternatively, we can use the scripts in the AdminApplication script library to install, uninstall, and administer the application configurations.

The scripting library provides a set of procedures to automate the most common administration functions. We can run each script procedure individually, or combine several procedures to quickly develop new scripts.


  1. Launch wsadmin using Jython.

  2. Uninstall the application:

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

    Table 1. uninstall command elements

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

  3. Save the configuration changes...


  4. In a network deployment environment only, synchronize the node. Use the syncActiveNodes script from the AdminNodeManagement script library to synchronize each active node in the configuration...




Uninstall an application removes it from the appserver configuration and from each server that the application was installed on. The system deletes the application binaries (EAR file contents) from the installation directory. This occurs when the configuration is saved for single server product versions or when the configuration changes are synchronized from the deployment manager to the individual nodes for network deployment configurations.


Related tasks

Uninstall enterprise apps
Administer applications using scripting
Automating application configurations using the scripting library



Application installation and uninstallation scripts