Delete a stream
We can delete a stream from an IBM MQ Version 7.1, or later, queue manager.
Before starting
Before deleting a stream we must ensure that there are no remaining subscriptions to the stream and quiesce all applications that use the stream. If publications continue to flow to a deleted stream, it takes a lot of administrative effort to restore the system to a cleanly working state.
Procedure
- Find all the connected brokers that host this stream.
- Cancel all subscriptions to the stream on all the brokers.
- Remove the queue (with the same name as the stream) from the namelist, SYSTEM.QPUBSUB.QUEUE.NAMELIST.
- Delete or purge all the messages from the queue with the same name as the stream.
- Delete the queue with the same name as the stream.
- Delete the associated topic object.