@baris Hm was doing similar approach, please check my another question with path.js error.
SOLVED Proper way to purge chats
After migration to NodeBB I have found that there is a problem with chats.
Could you recommend proper way of purging chats? So I will take into account all edge-cases in process: reseting counters, etc.
I will answer myself on question.
You need to remove these documents (
* where numbers are identifiers
Or if you don't want to do it manually, you could wait for future NodeBB Utils plugin: