The following instructions explain how to uninstall Message Queue on Linux.
Stop any running client applications.
Stop any running brokers. (You will be prompted for the admin user name and password.)
imqcmd shutdown bkr [-b hostName:port]
Unless you want to retain dynamic data, the Message Queue flat file user repository, and the Message Queue access control properties file associated with each broker instance, remove this data using the following command.
imqbrokerd -name instanceName -remove instance
Get the uninstall script.
Find the zipped distribution file used to install Message Queue and place it in a temporary directory, temp_directory.
Change directories to temp_directory.
Unzip the distribution file.
Change to the directory containing the Message Queue packages.
When prompted, type your root password.
Run the uninstall script.
The installation script lists any installed Message Queue RPM packages that are not shared. (It does not list shared Message Queue RPM packages installed with Message Queue, and which might be in use by other programs.)
If you want to uninstall all the listed RPM packages, enter y (yes) and skip to Step 14. Otherwise, continue with Step 12.
If you do not want to uninstall all of the Message Queue RPM packages, then enter n (no), and use the rpm -e command, as described in Step 13, to uninstall the specific RPM packages you want to remove.
Remove the Message Queue RPM packages manually using the following command:
rpm -e packageName [[packageName]...]
Where packageName specifies a Message Queue RPM package.
Because other products might be using Message Queue RPM packages, be careful about removing them.
Exit the shell.