These examples are based on a Linux system. If you have not yet installed IBMs Installation Manager, check out our article on installing Installation Manager. Before uninstalling a package, you would usually use the listInstalledPackages command to list the installed packages. In this example, there are 3 installed packages.
/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages -long /opt/IBM/InstallationManager/eclipse : com.ibm.cic.agent_1.8.5000.20160506_1125 /opt/IBM/WebSphere/AppServer : com.ibm.java.jdk.v8_8.0.5007.20171218_1035 /opt/IBM/WebSphere/AppServer : com.ibm.websphere.BASE.v90_18.104.22.16871205_1311
Before uninstalling a package, stop the services associated with the pacakge. For example, if uninstalling websphere.BASE, you would stop the node agent and stop the application server. You can then use the uninstall command to uninstall the package. In this example, the websphere.BASE and java.jdk packages are uninstalled.
/opt/IBM/InstallationManager/eclipse/tools/imcl uninstall com.ibm.websphere.BASE.v90_22.214.171.12471205_1311 com.ibm.java.jdk.v8_8.0.5007.20171218_1035 -installationDirectory /opt/IBM/WebSphere/AppServer -showProgress or -showVerboseProgress
Upon completion of the uninstall, the following text should be displayed.
Uninstalled com.ibm.java.jdk.v8_8.0.5007.20171218_1035 from the /opt/IBM/WebSphere/AppServer directory Uninstalled com.ibm.websphere.BASE.v90_126.96.36.19971205_1311 from the /opt/IBM/WebSphere/AppServer directory
After the uninstall, there will still be some files and directories left over. If you are absolutely certain that you will have no need for the left over files and directories, removed the left over files and directories.
rm -rf /opt/IBM/WebSphere/AppServer