This task provides steps for completely removing your DB2® product from your Windows® operating system. You should only perform this task if you no longer require existing your DB2 instances and databases.
If you are uninstalling the DB2 default copy, and you have other DB2 copies on your system, you should use the db2swtch command to choose a new default copy before you proceed with the uninstallation. Also, if your database administration server (DAS) is running under the copy being removed, you should move your DAS to a copy that is not being removed. Otherwise, you will have to recreate the DAS using db2admin create command after the uninstall and you might have to reconfigure the DAS for some functionality to work.
To remove your DB2 product from Windows:
Unfortunately, your DB2 product cannot always be removed by using the Control Panel - Add/Remove Programs facility or using the db2unins /p command or the db2unins /u command. The following uninstallation option should ONLY be attempted if the above method fails.
To forcefully remove all DB2 copies from your Windows system, run the db2unins /f command. This command will perform a brute force uninstallation of ALL DB2 copies on the system. Everything except user data, such as DB2 databases, will be forcefully deleted.
Related tasks
Uninstalling a DB2 product using a response file (Windows)
Changing the default DB2 and default IBM database client interface copy after installation (Windows)
Related reference
DROP DATABASE command
db2unins - Uninstall DB2 database product command
db2swtch - Switch default DB2 copy and database client interface copy command