This action is specific to store and forward queues. In this example the helper method removeQueueManager() is used to remove a single queue manager.
/* Create an empty store and forward queue admin message*/ MQeStoreAndForwardQueueAdminMsg msg = new MQeStoreAndForwardQueueAdminMsg (qMgrName, queueName); /** Prime message with who to reply to and a unique identifier */ primeAdminMsg(msg); /* Set the admin action to remove a queue manager */ msg.removeQueueManager(queueManagerName);