To clear chat session in webchat

hi , I’m confused on how to clear session in rasa webchat

I think you want to clear chats right? To do so you can add following code when page loads or add a button to trigger:


On page loads:


can you give me an example code to implement this , I tried it it is not working

Remove 29 and 30 line and add window.localStorage.clear() after 34th line

1 Like

Thank you very much for the timely help , It really helped me