In order to delete a queue manager:
Note there is no parameter structure here – just a Queue Manager handle.
rc = mqeAdministrator_QueueManager_delete(hAdministrator, pExceptBlock); if ( EC(&exceptBlk) == MQERETURN_QUEUE_MANAGER_ERROR ) { if(ERC(&exceptBlk) == MQEREASON_QMGR_ACTIVATED) { /* qmgr not been stopped - take appropriate actions */ } else if(ERC(&exceptBlk) == MQEREASON_QMGR_QUEUE_EXISTS) { /* queues exist - take appropriate actions */ } else if(ERC(&exceptBlk) == MQEREASON_CONNECTION_DEFINITION_EXISTS) { /* connection defs exist - take appropriate actions */ } else { /* unknown error */ } }