Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Feature request: remove retained messages #795

Open
mschwartz opened this issue Jun 2, 2019 · 0 comments
Open

Feature request: remove retained messages #795

mschwartz opened this issue Jun 2, 2019 · 0 comments

Comments

@mschwartz
Copy link

mschwartz commented Jun 2, 2019

I would like to remove several retained messages, and ideally the mqtt command line tool could be enhanced to do it.

Something like:
mqtt remove -t topic_pattern

subscribes to topic_pattern and for each topic/message received, publish( topic, null).

An extra feature would be to have a -f regex to filter topics using a regex. Then I can:

mqtt remove -t '#' -f "^substr.*$"

The filter argument would make this very powerful and most flexible.

I typically use the command line mqtt program to show some topic (pattern) live stream. The retained topics I want to remove make a lot of noise in the display.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant