Is there a way to remove all retained messages under a subtopic from (i.e. using) Red-NODE?
[{"id":"891248f8.835ea8","type":"mqtt out","z":"fc382e1f.ee08d","name":"","topic":"","qos":"2","retain":"true","broker":"70574e00.5b08e4","x":450,"y":100,"wires":[]},{"id":"60c15933.a78008","type":"inject","z":"fc382e1f.ee08d","name":"","topic":"system/ticket/001","payload":"1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":60,"wires":[["891248f8.835ea8"]]},{"id":"d3415875.513938","type":"inject","z":"fc382e1f.ee08d","name":"","topic":"system/ticket/002","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":100,"wires":[["891248f8.835ea8"]]},{"id":"ca7642f4.21be4","type":"inject","z":"fc382e1f.ee08d","name":"","topic":"system/ticket/003","payload":"3","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":140,"wires":[["891248f8.835ea8"]]},{"id":"5d70f289.32584c","type":"mqtt in","z":"fc382e1f.ee08d","name":"","topic":"system/ticket/+","qos":"2","datatype":"auto","broker":"70574e00.5b08e4","x":140,"y":200,"wires":[["d35f6088.dfd76"]]},{"id":"d35f6088.dfd76","type":"debug","z":"fc382e1f.ee08d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":200,"wires":[]},{"id":"70574e00.5b08e4","type":"mqtt-broker","z":"","name":"localhost MQTT","broker":"localhosta","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
Topics under system/ticket
are UUIDs.
If I restarted flows and subsequently mqtt in
node would re-subscribe, I would get retained messages from system/ticket/+
and could reset the payload for each topic, but as I already know from this topic, there's no way to achieve it.
Is there any other way?