There are a few different ways to uninstall an application from WebSphere.
- Using the WebSphere admin console (ISC)
- Using wsadmin
- Removing EAR, WAR, JAR, WAR from monitoredDeployableApps
Using the WebSphere admin console
- In the left panel of the WebSphere web console, expand Applications and select All applications.
- If the application is running, stop the application.
- Check the application to undeploy, and select Remove.
- Select OK.
- Select Save.
In this example, the sample_war application is removed.
The following wsadmin.sh (Linux) or wsadmn.bat (Windows) commands can be used.
# Jython $AdminApp uninstall application1 # Jacl AdminApp.uninstall('application1')
Then, save the configuration to the master repository.
# Jacl AdminConfig.save()
If the application is in a node that has been federated into a dmgr, synchronize the node and the dmgr.
# Jacl AdminNodeManagement.syncActiveNodes()
Removing EAR, WAR, JAR, WAR from monitoredDeployableApps
If the application was automatically deployed using the monitoredDeployableApps directory, simply just remove the WAR, EAR, JAR, or SAR from the monitoredDeployableApps subdirectory, and the application will automatically be undeployed.
If the application is successfully removed, the following events should appear in the dmgr SystemOut.log.
ADMA5106I: Uninstallation of app_name started. ADMA5017I: Application app_name uninstalled successfully.