The procedure for removing a broker again varies from one platform to another, as described in the following sections.
imqbrokerd [options…] -remove instance
For example, if the name of the broker is myBroker, the command would be
imqbrokerd -name myBroker -remove instance
If the broker is set up to start automatically at system startup, edit the configuration file /etc/imq/imqbrokerd.conf (Solaris) or /etc/opt/sun/mq/imqbrokerd.conf (Linux) and set the AUTOSTART property to NO.
See Broker Utility for complete information on the syntax, subcommands, and options of the imqbrokerd command. For a quick summary of this information, enter the command
imqcmd shutdown bkr
to shut down the broker, followed by
to remove the service.
Alternatively, you can use the Windows Services tool, reached via the Administrative Tools control panel, to stop and remove the broker service.
Restart your computer after removing the broker service.