How to drop/remove a specific message in a queue?
Currently, I am using the option below, but it deletes all queued messages. How can I delete a specific message?
msg:set_meta(‘queue’, ‘null’)
How to drop/remove a specific message in a queue?
Currently, I am using the option below, but it deletes all queued messages. How can I delete a specific message?
msg:set_meta(‘queue’, ‘null’)
Please post enough information for that to be reproduced. Setting a message’s queue to null should delete only the message for which the command was called.
ok
There is no specific function to delete a specific individual message. If you wanted to do that you could theoretically use the messageID metadata and a conditional but you would need to know what that ID is in the first place. You could get that from logs and then possibly conditionally null the message, but I have not tried this.