Deleting a queue is done with a single call to MQDeleteQueue.
hr = MQDeleteQueue(szwFormatName);
If (FAILED(hr))
{
// MQDeleteQueue error handler.
}
The following example deletes the queue.
/////////////////
// Delete queue.
/////////////////
hr = MQDeleteQueue(szwFormatName);
If (FAILED(hr))
{
// MQDeleteQueue error handler.
}