Uninstall packages using imcl commands
Use the uninstall or uninstallAll commands to uninstall packages.
To identify the package ID, version, and feature ID, run the listAvailablePackages command. See List available packages using imcl commands.
Procedure
To uninstall a package:
- Open a command-line utility.
- Open the tools directory.
- Run the uninstall command:
imcl uninstall packageID[_version][,featureID] [ -installationDirectory installation_directory ] [ -properties property_key=value ] [ -preferences preference_key=value ]Enclose file paths that include spaces with double quotation marks.
Example
Operating system Commands Windows imcl.exe uninstall com.ibm.package_7.1 -installationDirectory installation_dir\Package Linux, UNIX, IBM i, z/OS , and OS X ./imcl uninstall com.ibm.package_7.1 -installationDirectory installation_dir/Package
Uninstall all packages using the uninstallAll command
We can uninstall all the packages using the uninstallAll commands.Procedure
To uninstall all packages:
- Open a command-line utility.
- Open the tools directory.
- Run the uninstall all packages command:
imcl uninstallAll [ -installationDirectory installation_directory ] [ -properties property_key=value ]Use the -installationDirectory option to uninstall only the packages in the specified installation directory.
Example
Operating system Administrator Windows imcl uninstallAll -installationDirectory installation_dir Linux, UNIX, IBM i, z/OS, and OS X ./imcl uninstallAll -installationDirectory installation_dir
Home