Uninstalling packages by using imcl commands

Use the uninstall or uninstallAll commands to uninstall packages.

Before you begin

To identify the package ID, version, and feature ID, run the listAvailablePackages command. See Listing available packages by using imcl commands.

Procedure

The following steps describe how to uninstall a package:

  1. Open a command-line utility.
  2. Open the tools directory.
  3. 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

Table 1. Examples of the uninstall commands by operating system
Operating system Commands
Windows imcl.exe uninstall com.ibm.package_7.1 -installationDirectory installation_dir\Package
Linux®, UNIX, IBM i, z/OS, and the OS X operating system ./imcl uninstall com.ibm.package_7.1 -installationDirectory installation_dir/Package

Uninstalling all packages by using the uninstallAll command

You can uninstall all the packages by using the uninstallAll commands.

Procedure

The following steps describe how to uninstall all packages:

  1. Open a command-line utility.
  2. Open the tools directory.
  3. 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

Table 2. Examples of the uninstallAll commands by operating system
Operating system Administrator
Windows imcl uninstallAll -installationDirectory installation_dir
Linux, UNIX, IBM i, z/OS, and the OS X operating system ./imcl uninstallAll -installationDirectory installation_dir