Need Help to clear the Rasa Chat history

Hi,

I am looking for a help in order to clear my rasa chatbot history. I am using webchat widget.

Issue: Every time when I start the server using rasa run -m models --enable-api --cors “*” command, displays the old chat. How can I clear the old chats ? I tried modify my index.html file as follows

.rw-conversation-container .rw-header{background-color: #fa7070;} !(function () { let e = document.createElement("script"), t = document.head || document.getElementsByTagName("head")[0]; (e.src = "https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js"), (e.async = !0), (e.onload = () => { window.WebChat.default( { initPayload : '/utter_greet', initPayload : '/mortgage_help', initPayload : '/utter_first_time_buyer', initPayload : '/bot_challenge', customData: { language: "en" }, socketUrl: "http://localhost:5005", title: "Rasa Bot", subtitle: "Welcome to chatbot, }, null ); storage: "local" }), t.insertBefore(e, t.firstChild); })();
  </script>

Not working . Any leads would be so helpful :slight_smile:

Hi @Harshika , which widget are you using here? This issue appears to be particular to the front-end in this case

hi, check your localstorage, rasa save the history there, you must do a localstorage.clear() or localstorage.removeItem(“key”) I don’t remember correctly.

i have faced same issue but i have fix this using this command localStorage.clear(); check full integration here: