# How can reset all slots?

**URL:** <https://forum.rasa.com/t/how-can-reset-all-slots/14439>\
**Category:** Rasa Open Source\
**Created:** [August 17, 2019, 7:31pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439 "2019-08-17T19:31:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hajoura](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@hajoura](https://forum.rasa.com/u/hajoura)\
**Post date:** [August 17, 2019, 7:31pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/1 "2019-08-17T19:31:05Z")

</div>

after I finished my conversation I would like to start a new conversation but my bot save all the slots informations from the previous conversation I read the doc paper in rasa but to be honest I do not know how to handle and please provide for me explain plz and thx in adv

---

<div class="post-metadata">

**Author:** ![gcgloven](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gcgloven/32/3915_2.png) [@gcgloven](https://forum.rasa.com/u/gcgloven)\
**Post date:** [August 19, 2019, 2:11am UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/2 "2019-08-19T02:11:35Z")

</div>

Go to your rasa lib file in your python. Check rasa\_sdk [not rasa\_core\_sdk].

Go to the events.py and you will see the available methods to be called for dialogue management.

in your code, you can do:

```
from rasa_sdk.events import AllSlotsReset

class ActionHelloWorld(Action):

     def name(self) -> Text:
            return "action_hello_world"

     def run(self, dispatcher: CollectingDispatcher,
             tracker: Tracker,
             domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

         dispatcher.utter_message("Hello World!")

         return [AllSlotsReset()]

```

Remember, you always need to return the function in order to execute it.

---

<div class="post-metadata">

**Author:** ![hajoura](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@hajoura](https://forum.rasa.com/u/hajoura)\
**Post date:** [August 22, 2019, 6:10pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/3 "2019-08-22T18:10:46Z")

</div>

thank you so much for your example but I want to recent slot in form action it will be same it is ?

---

<div class="post-metadata">

**Author:** ![ayushgit2498](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@ayushgit2498](https://forum.rasa.com/u/ayushgit2498)\
**Post date:** [February 7, 2020, 8:00pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/4 "2020-02-07T20:00:28Z")

</div>

Thank You for the answer! It worked.

The mistake i was making was that i was importing `AllSlotsReset()` from `rasa_core.events` instead of `rasa_sdk.events`.

---

<div class="post-metadata">

**Author:** ![SathishKumar](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@SathishKumar](https://forum.rasa.com/u/SathishKumar)\
**Post date:** [July 15, 2020, 6:30pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/5 "2020-07-15T18:30:18Z")

</div>

Thank you for the answer … its working!!

---

<div class="post-metadata">

**Author:** ![samscudder](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/samscudder/32/4466_2.png) [@samscudder](https://forum.rasa.com/u/samscudder)\
**Post date:** [July 17, 2020, 12:19pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/6 "2020-07-17T12:19:14Z")

</div>

You can also send `/restart`

---

<div class="post-metadata">

**Author:** ![rashmi\_49](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@rashmi\_49](https://forum.rasa.com/u/rashmi_49)\
**Post date:** [March 1, 2021, 5:45am UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/7 "2021-03-01T05:45:22Z")

</div>

@samscudder does restart and reset works same?

---

<div class="post-metadata">

**Author:** ![AshwiniPatil5](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ashwinipatil5/32/13778_2.png) [@AshwiniPatil5](https://forum.rasa.com/u/AshwiniPatil5)\
**Post date:** [March 22, 2021, 3:26pm UTC](https://forum.rasa.com/t/how-can-reset-all-slots/14439/8 "2021-03-22T15:26:09Z")

</div>

I am trying to achive the same. Can you please share how did you handle this?
