Uninstalling the IBM Data Server Driver for ODBC and CLI

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

To uninstall the IBM Data Server Driver for ODBC and CLI, you need:
  • to ensure no applications are linked to the libraries of the copy of the driver that you will be uninstalling.

Procedure

There is no unstall utility for the IBM Data Server Driver for ODBC and CLI. It must be uninstalled manually:
  • 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.
  • Remove the driver files by deleting the directory in which you installed the driver.

    For example, if you installed the driver in $HOME/ibm_data_server_driver_for_odbc_cli, then delete $HOME/ibm_data_server_driver_for_odbc_cli.