Delete a publishable document from broker queue after wait time

Hi All,
I’m wondering is there any way to delete the documents from the broker queue once they have crossed the wait time under the publish and wait model transactions. I need to cancel the whole flow request also. any ideas will be apprciated

Hi,

Set ‘Time to live’ property for the publishable document type. Broker discards the document once time set in property elapses.

Thanks Shahid, for the reply.

This is a technical nit, but keep in mind that the broker doesn’t sweep expired documents on its own. Rather the document will stay on the queue (in storage) until a client requests it. That’s when broker will notice that it has expired and will discard it.

I mention it in case someone is browsing broker queues (and the client is disconnected/suspended) and sees events on queue that are expired.