Java

/* Create an empty queue admin message and parameters field */
MQeQueueAdminMsg msg = new MQeQueueAdminMsg();

/* Prime the message with who to reply to and a unique identifier 
/* and set the name of the QueueManager and Queue  */

/* Specify the alias of the queue to be removed */
msg.removeAlias( "Fred" );

/* Set the admin action to update the queue */
msg.update( parms );

Parent topic: Remove alias