Steps required to delete queue managers in C
/* Create the new administrator based on the exisitng QM Handle */ rc = mqeAdministrator_new(&exceptBlock, &hAdmin,hQueueManager); if (MQERETURN_OK == rc) { if (MQERETURN_OK == rc) { /* delete any conncetion definitins for example :*/ rc = mqeAdministrator_Connection_delete(hAdmin, &exceptBlock, hRemoteQM); } /* delete all the local queues here - remember to do "special*/ /*queues" for example ... */ if (MQERETURN_OK == rc) { rc = mqeAdministrator_LocalQueue_delete(hAdmin, &exceptBlock, MQE_DEADLETTER_QUEUE_NAME, hLocalQMName); } /* Finally delete the queue manager */ if (MQERETURN_OK == rc) { rc = mqeAdministrator_QueueManager_delete(hAdmin, &exceptBlock); } /* free of the amdinsitrator */ (void)mqeAdministrator_free(hAdmin, &exceptBlock); }