The Delete Publication command message is sent to a broker from a publisher, or from another broker, to tell the broker to delete any retained publications for the specified topics.
This message is sent to the input queue of a message flow that contains a Publication node. You must have the authority to put a message onto this queue, and to publish on the topic, or topics, that are specified in the message.
The input queue should be the queue that the original publication was sent to.
If you have the authority for some, but not all, of the topics that are specified in the Delete Publication command message, only those topics are deleted. A Broker Response message indicates which topics are not deleted.
Similarly, if a Publish command contains more than one topic, a Delete Publication command matching some, but not all, of those topics deletes only the publications for the topics that are specified in the Delete Publication command.
See MQMD settings in command messages to the broker for details of the message descriptor (MQMD) parameters that are needed when sending a command message to the broker.
This property must be specified.
This property must be specified; it can be repeated for as many topics as needed.
All retained publications for the specified topics are deleted at the local broker (that is, the broker to which this message is sent), whether they were published with the Local option or not.
Publications at other brokers are not affected.
All options take their default values. This has the same effect as omitting the DelOpt property. If other options are specified at the same time, None is ignored.
The default if this property is omitted is that all retained publications for the specified topics are deleted at all brokers in the network, regardless of whether they were published with the Local option.
<psc> <Command>DeletePub</Command> <Topic>Sport/Soccer/State/LatestScore/Team1 Team2</Topic> <DelOpt>Local</DelOpt> </psc>