Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge retained topics hierarchy - recursive removal #43

Closed
xAPPO opened this issue Jan 20, 2019 · 12 comments
Closed

Purge retained topics hierarchy - recursive removal #43

xAPPO opened this issue Jan 20, 2019 · 12 comments
Labels
enhancement New feature or request
Projects

Comments

@xAPPO
Copy link

xAPPO commented Jan 20, 2019

I would find it very useful to be able to select a 'top' level topic and delete all the retained messages underneath. A bit like selecting the new retained/delete option but higher in the hierarchy.
Otherwise it's a laborious task....

@thomasnordquist
Copy link
Owner

Thought about it, dismissed it because I did not know where to put the button.
I actually think this is a great feature to purge a tree of unused retained topics.
I'll add it to the todo list.

@thomasnordquist thomasnordquist changed the title Retined Topics - recursive removal Purge retained topics hierarchy - recursive removal Jan 20, 2019
@thomasnordquist thomasnordquist added the enhancement New feature or request label Jan 20, 2019
@thomasnordquist
Copy link
Owner

I think the recursive model is a bit too powerful, it could potentially clear the hole broker and therefore have unforeseen side-effects.
I think I'll add keyboard support, so one can navigate with the arrow keys and clear topics with backspace/delete keys.

@xAPPO
Copy link
Author

xAPPO commented Jan 30, 2019

That's a shame as it would have been so useful to me. Hive include this functionality as a plugin. I understand the concern but there could be a warning dialog or even an 'advanced features' enable option somewhere. My topics that I wanted to delete are hundreds of sub topics. I couldn't use a delete on each topic.

@jghaanstra
Copy link

Yes please, ran into this recently and ended up purging the entire Mosquitto database to get the job done!

@thomasnordquist
Copy link
Owner

I limited the removal to 50 topics per click, this will be enough to get most of the tiresome work done, without being a "nuke".

Funfact: This feature works well with the search function.
Example: Search for topics containing "PowerState", select the root topic and do the "recursive removal".
The result: All topics containing "PowerState" have been removed.

Will be even more powerful when one can customize the search funktion: Use regex, limit search to topic or message body.

@thomasnordquist
Copy link
Owner

bildschirmfoto 2019-02-18 um 22 18 14

@thomasnordquist
Copy link
Owner

Has been released

@cvladan
Copy link

cvladan commented Mar 22, 2019

Woow. Thanks! Great tool!

@thomasnordquist
Copy link
Owner

Can now also been done with de Del & Backspace keys.
Released with v0.3.5.

@larstobi
Copy link

@thomasnordquist It would be great to enable recursively more than 50 topics. If you're worried about users shooting themselves in the foot, you could make it a hidden "power user" option to enable unlimited recursive deletes. I have several topics from using Home Assistant that I need to delete, and they have thousands of subtopics.

@tekand
Copy link

tekand commented Feb 21, 2021

@thomasnordquist I can second @larstobi 's opinion. I am also working with Home Assistant and it is quite tiring to reset (delete) all the topics.
Maybe it can be introduced as a hidden setting? Or a key combination?
There are definitely "power users" here who know what they are doing. Please give them the option to do what they want. :)

@larstobi
Copy link

I used a workaround by using a mqtt CLI to recursively delete them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Awesomize
Awaiting triage
Development

No branches or pull requests

6 participants