If you are not sure what an MQ channel is, check out our Getting Started tutorial. These examples are based on Linux. Switch to the mqm user.
su - mqm
Start the MQSC utility for the queue manager that contains the channel. In this example, MANAGER01 is the name of the queue manager. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.
Before removing a channel authority, use the display chlauth command to ensure the channel authority exists.
The set chlauth command with the remove action is used to delete a channel authority. In this example, the channel auhority named CHANNEL01 is deleted.
echo "set chlauth (MANAGER01.<channel name>.SVR) type (ADDRESSMAP) address (*) action (REMOVE)" | runmqsc MANAGER01
The following should be displayed.
AMQ8015I: IBM MQ channel authentication record set.
If you attempt to display chlauth again, the following should be displayed.
AMQ8884E: Channel authentication record not found.