# Need Help to clear the Rasa Chat history

**URL:** <https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229>\
**Category:** Rasa Open Source\
**Created:** [April 8, 2021, 11:09am UTC](https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229 "2021-04-08T11:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshika](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@Harshika](https://forum.rasa.com/u/Harshika)\
**Post date:** [April 8, 2021, 11:09am UTC](https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229/1 "2021-04-08T11:09:48Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![b-quachtran](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@b-quachtran](https://forum.rasa.com/u/b-quachtran)\
**Post date:** [May 5, 2021, 10:26pm UTC](https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229/2 "2021-05-05T22:26:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jguilarte](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jguilarte/32/20583_2.png) [@jguilarte](https://forum.rasa.com/u/jguilarte)\
**Post date:** [May 16, 2022, 8:16pm UTC](https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229/3 "2022-05-16T20:16:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![leancodezone](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@leancodezone](https://forum.rasa.com/u/leancodezone)\
**Post date:** [March 10, 2024, 6:32am UTC](https://forum.rasa.com/t/need-help-to-clear-the-rasa-chat-history/42229/4 "2024-03-10T06:32:32Z")

</div>

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

[![]( " - YouTube") ](https://www.youtube.com/watch?v=N_A7e16L6oc)
