Uninstalling the IBM Data Server Driver for ODBC and CLI package

The IBM Data Server Driver for ODBC and CLI is not part of the IBM Data Server Client or the IBM Data Server Runtime Client. It must be installed and configured separately.

Before you begin

Before attempting to uninstall the IBM Data Server Driver for ODBC and CLI:
  • Ensure that no applications are linked to the libraries of the copy of the driver that are uninstalling.
  • On Windows operating systems only:
    If you ran the db2cli install -setup command to register the driver with the Microsoft Distributed Transaction Coordinator (DTC), you must run the db2cli install -cleanup command before uninstalling the driver. This cleans up the Windows registry entries that were created when you ran it to register the driver with the DTC.
    For example, the listed command removes the IBM Data Server Driver for ODBC and CLI from the Windows registry and removes the configuration folders under the application data path:
    > db2cli install -cleanup
    The IBM Data Server Driver for ODBC and CLI unregistered successfully. 
    
    The configuration files and folders are removed successfully from C:\Documents and Settings
       \All Users\Application Data\IBM\Db2\C_CLIDRIVER.
    
    
    Note: User-created files and sub-folders are untouched (can be removed 
          using -force sub-option).
    The next example specifies the -force option. In this case, the IBM Data Server Driver for ODBC and CLI is removed from the Windows registry and the configuration folders, including any user-created configuration files, under the application data path are removed:
    > db2cli install -cleanup -force
    The IBM Data Server Driver for ODBC and CLI unregistered successfully. The configuration folders are removed successfully from C:\Documents and Settings\All Users\Application Data\IBM\Db2\C_CLIDRIVER.

Procedure

There is no uninstall utility for the IBM Data Server Driver for ODBC and CLI. The driver is removed manually by deleting the directory in which you installed the driver. This applies to installations on Linux, AIX, and Windows systems.
On Windows
For example, if you are running Windows and you installed the driver in C:\<user_directory>\ibm_data_server_driver_for_odbc_cli, simply delete the directory ibm_data_server_driver_for_odbc_cli.
On AIX and Linux
If you are running AIX or Linux, use the following command to remove the directory:
rm -rf <odbc-cli driver directory name>
where -r deletes the directory and its contents recursively, and -f forces the deletion of the directory contents without prompting you.