+

Search Tips | Advanced Search

Delete MQ Queue (DLTMQMQ)

    Where allowed to run
    All environments (*ALL)

    Threadsafe
    Yes

The Delete MQ Queue (DLTMQMQ) command deletes an MQ queue.

If the queue is a local queue, it must be empty for the command to succeed. CLRMQMQ can be used to clear all of the messages from a local queue.

The command fails if an application has:

  • This queue open
  • A queue that resolves to this queue open
  • A queue open that resolves through this definition as a queue manager alias.

An application using the definition as a reply-to queue alias, however, does not cause this command to fail.


Parameters

Keyword Description Choices Notes
QNAME Queue name Character value Required, Positional 1
MQMNAME Message Queue Manager name Character value, *DFT Optional, Positional 2


Queue name (QNAME)

>

The name of the queue.

The possible values are:

    queue-name
    Specify the name of the queue.


Message Queue Manager name (MQMNAME)

>

Specifies the name of the message queue manager.

The possible values are:


Examples

>

None


Error messages

>

Unknown

Parent topic: CL commands reference for IBM i

Last updated: 2020-10-04