# Delete all old models under "models" before training new model

**URL:** <https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951>\
**Category:** Rasa Open Source\
**Created:** [October 16, 2020, 7:02am UTC](https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951 "2020-10-16T07:02:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhilcheke](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@Nikhilcheke](https://forum.rasa.com/u/Nikhilcheke)\
**Post date:** [October 16, 2020, 7:02am UTC](https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951/1 "2020-10-16T07:02:49Z")

</div>

I want to delete all old i.e. already created models from _ **models** _ folder before training or while training. I found that there an option of _–out_ with _rasa train_ command which will move newly created model under specified folder name, but this is not helping me with what I want to achieve. Also I could not find any command which will help me with deleting all old models.

Please help

---

<div class="post-metadata">

**Author:** ![gaushh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gaushh/32/11154_2.png) [@gaushh](https://forum.rasa.com/u/gaushh)\
**Post date:** [October 16, 2020, 8:13am UTC](https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951/2 "2020-10-16T08:13:05Z")

</div>

Where are you training the bot? Locally or on Rasa X? If locally, go to models folder inside your project directory and delete pre-existing model files manually. Rasa X also provides you with the functionality of deleting trained model files.

---

<div class="post-metadata">

**Author:** ![Nikhilcheke](https://avatars.discourse-cdn.com/v4/letter/n/df788c/32.png) [@Nikhilcheke](https://forum.rasa.com/u/Nikhilcheke)\
**Post date:** [October 16, 2020, 8:33am UTC](https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951/3 "2020-10-16T08:33:45Z")

</div>

hey @gaushh, i want to delete all old models automatically with a command with _rasa train_. btw i am training bot locally

---

<div class="post-metadata">

**Author:** ![gaushh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gaushh/32/11154_2.png) [@gaushh](https://forum.rasa.com/u/gaushh)\
**Post date:** [October 16, 2020, 10:34am UTC](https://forum.rasa.com/t/delete-all-old-models-under-models-before-training-new-model/35951/4 "2020-10-16T10:34:04Z")

</div>

run

> rmdir models

before running

> rasa train
