https://discord.gg/botpress logo
Native window.botpress.destroy() / terminate() met...
# 👀feature-requests
p
Currently, the Botpress Webchat SDK lacks a formal way to completely tear down a chatbot instance once it has been initialized via window.botpress.init(). While we can hide the widget, there is no way to programmatically unmount the UI, remove all event listeners, and stop background processes without a full page reload. GDPR/CCPA Compliance: If a user revokes their cookie consent via a Consent Management Platform (CMP) during a session, we must be able to completely stop and remove the bot. Currently, the script remains active in memory, which is a compliance risk. Proposed Solution: - Removes the webchat iframe/container from the DOM. - Clears all internal intervals/timeouts and event listeners. - Wipes the global window.botpress state (or resets it to an uninitialized state) Thanks in advance and have a nice day!
3 Views