v “Uninstalling your DB2 product (Linux and UNIX)” in Quick Beginnings for DB2
Servers
v “Uninstalling a DB2 product using a response file (Windows)” in Installation and
Configuration Supplement
v “Changing the Default DB2 copy after installation (Windows)” in Administration
Guide: Implementation
Related reference:
v “db2swtch - Switch default DB2 copy command” in Command Reference
v “db2unins - Uninstall DB2 database product command” in Command Reference
v “DROP DATABASE command” in Command Reference
Uninstalling your DB2 products (Linux)
Removing DB2 products using the db2_deinstall or
doce_deinstall command (Linux)
This task provides steps for removing DB2 products or DB2 components using the
db2_deinstall command. The db2_deinstall command removes all DB2 products
from your system. The doce_deinstall command removes the DB2 Information
Center that is in the same install path as the doce_deinstall tool. This command is
only available on the Linux operating systems.
You cannot remove DB2 products using a native operating system utility, such as
rpm or SMIT.
Prerequisites:
Before you remove DB2 products from your system:
v Ensure that you have performed all steps outlined in Uninstalling your DB2
product.
v You must have root authority to remove DB2 products.
Procedure:
To remove ALL DB2 products from a specific path:
1. Log in as user with root authority.
2. Access the path where the DB2 products are located. To locate the path of the
DB2 product to remove, see
3. Run the db2_deinstall -a command from the DB2DIR/install directory or the
doce_deinstall -a command from the DB2DIR/doc/install directory, where
DB2DIR is the location that you specified when you installed your DB2
product.
Related tasks:
v “Applying fix packs” on page 71
v “Listing DB2 products installed on your system (Linux and UNIX)” in Quick
Beginnings for DB2 Servers
v “Removing DB2 instances (Linux)” on page 76
v “Uninstalling your DB2 product (Linux and UNIX)” in Quick Beginnings for DB2
Servers
74 Getting started with DB2 installation and administration