There are a few different ways to uninstall an application from WebSphere.
Using the WebSphere admin console
In this example, the sample_war application is removed.
The following wsadmin 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.