Global Chat rooms.
Hello, how to delete a global chat? I have them, up to 3 rooms.. I will add that my database is Redis.
You have three global chat rooms? Do you know how this happened?
Yes, one when I had version 1.0.0 and it was not possible to delete it and I just installed update and it created new 3 chats, where only one of them could be deleted.
Do you have NodeBB running with multiple processes?
2018-11-07T20:50:39.634Z  - info: NodeBB Ready 2018-11-07T20:50:39.638Z  - info: NodeBB Ready 2018-11-07T20:50:39.643Z  - info: Enabling 'trust proxy' 2018-11-07T20:50:39.649Z  - info: NodeBB is now listening on: 0.0.0.0:8002 2018-11-07T20:50:39.651Z  - info: Enabling 'trust proxy' 2018-11-07T20:50:39.656Z  - info: NodeBB is now listening on: 0.0.0.0:8001 2018-11-07T20:50:39.665Z  - info: Routes added 2018-11-07T20:50:39.667Z  - info: NodeBB Ready 2018-11-07T20:50:39.671Z  - info: Enabling 'trust proxy' 2018-11-07T20:50:39.674Z  - info: NodeBB is now listening on: 0.0.0.0:8000
Ah ok. I'll add a fix for multiple processes so it doesn't create a bunch of rooms when starting up.
And I'll cook up a script to remove all of them for you.
@youhosi New Plugin version:
Fixes the multiple room creation bug.
It also contains a script for purging chat rooms. First, you must get a list of chat room ID numbers you want to remove. Go to https://your.site/me/chats and then click on each chat room you wish to completely delete. The room ID number is the number at the end of the URL.
You then want to open up a command line terminal and navigate to the main
nodebbdirectory. The one with
app.js, etc. Assuming the plugin is already installed, you then run:
node node_modules/nodebb-plugin-global-chat/remove-chat-rooms [room IDs...]
[room IDs...]is a space-delimited list of room ID numbers, like so:
node node_modules/nodebb-plugin-global-chat/remove-chat-rooms 5 9 12
This will delete those rooms forever. I strongly suggest you make a database backup before running this script.
thanks, its working