open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.14k stars 600 forks source link

Feature: Implement a convenient way to clear all chats #465

Closed smashah closed 4 years ago

smashah commented 4 years ago

The longer an instance is running the more messages it handles and caches. Apps should be managing user conversational state off wa and not inferring from message history. The proposal is to build convenient functionality to clear all messages from every chat to reduce the probability of bottlenecks/memory leaks.

smashah commented 4 years ago

https://open-wa.github.io/wa-automate-nodejs/classes/client.html#clearallchats