+

Search Tips | Advanced Search

DELETE TOPIC

Use DELETE TOPIC to delete an IBM MQ administrative topic node.


Use MQSC commands

For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.

We can issue this command from sources 2CR. For an explanation of the source symbols, see Sources from which we can issue MQSC commands on z/OS .

Synonym: None


DELETE TOPIC

DELETE TOPIC ( topic-name ) AUTHREC(YES )AUTHREC(NO)1CMDSCOPE(' ')CMDSCOPE(qmgr-name)2CMDSCOPE(*)23QSGDISP(QMGR)QSGDISP(COPY)QSGDISP(GROUP)23Notes:

  • 1 Not valid on z/OS
  • 2 Valid only on z/OS when the queue manager is a member of a queue sharing group.
  • 3 Valid only on z/OS.


Usage notes for DELETE TOPIC


Parameter descriptions for DELETE TOPIC

    (topic-name)
    The name of the administrative topic object to be deleted. This parameter is required.

    The name must be that of an existing administrative topic object.

    AUTHREC
    This parameter does not apply to z/OS

    Specifies whether the associated authority record is also deleted:

      YES
      The authority record associated with the object is deleted. This is the default.

      NO
      The authority record associated with the object is not deleted.

    CMDSCOPE
    This parameter applies to only z/OS and specifies how the command runs when the queue manager is a member of a queue sharing group. CMDSCOPE must be blank, or the local queue manager, if QSGDISP is set to GROUP.

      ' '
      The command runs on the queue manager on which it was entered. This is the default value.

      qmgr-name
      The command runs on the queue manager you specify, providing the queue manager is active within the queue sharing group.

      We can specify a queue manager name, other than the queue manager on which the command was entered, only if we are using a queue sharing group environment and if the command server is enabled.

      *
      The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect of this is the same as entering the command on every queue manager in the queue sharing group.

    QSGDISP
    This parameter applies to z/OS only.

    Specifies the disposition of the object to which we are applying the command (that is, where it is defined and how it behaves).

      COPY
      The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(COPY). Any object residing in the shared repository, or any object defined using a command that had the parameters QSGDISP(QMGR), is not affected by this command.

      GROUP
      The object definition resides in the shared repository. The object was defined using a command that had the parameters QSGDISP(GROUP). Any object residing on the page set of the queue manager that executes the command (except a local copy of the object) is not affected by this command. If the command is successful, the following command is generated and sent to all active queue managers in the queue sharing group to make, or delete, local copies on page set zero:
      DELETE TOPIC(topic-name) QSGDISP(COPY)
      

      The deletion of the group object takes effect even if the generated command with QSGDISP(COPY) fails.

      QMGR
      The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(QMGR). Any object residing in the shared repository, or any local copy of such an object, is not affected by this command.

      This is the default value.

Parent topic: MQSC commands


Related information

Last updated: 2020-10-04