Cleanup of Unused Queues

Hey @Vinod_vema , welcome to the Community…!

First obvious question: can you not subscribe/connect back to the broker with the same session name so the broker knows to reassign the auto-created queue back to this app?

EDIT: I heard back from one of our top engineers at Solace who pointed me in the right direction:

MQTT5 allows a client to specify a “session expiry interval” in the MQTT CONNECT properties. This will cause the broker to clean up any unused MQTT session queues after the client’s disconnection.

Do some Googling, there’s quite a few pages explaining this feature. ??