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

Disconnected clients. Delete all button. #1533

Open
cocoaway opened this issue Jun 18, 2023 · 1 comment
Open

Disconnected clients. Delete all button. #1533

cocoaway opened this issue Jun 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cocoaway
Copy link

What would you like to be added or enhanced?

Hi, it would be very useful to have a button to delete all clients that are disconnected from the 'Connections' page of the dashboard.

The procedure could be : select status -> disconnected (as already is) and bring up a 'delete all' button.

Thx.

Luca

Why is this needed?

Greater readability of clients, if in the past there have been hundreds of clients that no longer exist, the dashboard continues to show them, making it difficult to read. In addition, a disconnected client today can only be deleted by clicking on its client_id and without the possibility of multiple delete selections.

@zmstone
Copy link
Member

zmstone commented Jun 19, 2023

Hi @cocoaway

Thank you for the suggestion.
As a workaround, there is a batch kick API.

curl -X 'POST' \
  'http://localhost:18083/api/v5/clients/kickout/bulk' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '[  "client1", "client2" ]'

To query the disconnected:

curl -X 'GET' \
  'http://localhost:18083/api/v5/clients?page=1&limit=5&conn_state=disconnected' \
  -H 'accept: application/json'

@zmstone zmstone transferred this issue from emqx/emqx Jun 19, 2023
@zmstone zmstone added the enhancement New feature or request label Jun 19, 2023
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
None yet
Development

No branches or pull requests

2 participants