WAS v8.5 > Script the application serving environment (wsadmin) > Administer applications using wsadmin.sh

Uninstall enterprise applications using wsadmin.sh

We can use the AdminApp object or the AdminApplication script library to uninstall applications.

Start the wsadmin scripting tool.

There are two ways to complete this task. This topic uses the AdminApp object to uninstall enterprise applications. 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 develop new scripts.

  1. Uninstall the application:

    Specify the name of the application to uninstall, not the name of the EAR file.

    • Jacl:

        $AdminApp uninstall application1
    • Jython:

        AdminApp.uninstall('application1')

    uninstall command elements. Run the uninstall command to remove an application from a server.

    Element Description
    $ 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.

    Use the following command example to save your configuration changes:


Results

Uninstalling an application removes it from the application server configuration and from each server 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


Uninstall enterprise applications using the console
Administer applications using wsadmin.sh
Automating application configuration


Reference:

Application installation and uninstallation scripts


+

Search Tips   |   Advanced Search