# Rasa NLU don't unload/delete model from project and machine

**URL:** <https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627>\
**Category:** Rasa Open Source\
**Created:** [January 24, 2019, 11:08am UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627 "2019-01-24T11:08:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalAlba](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/salalba/32/1248_2.png) [@SalAlba](https://forum.rasa.com/u/SalAlba)\
**Post date:** [January 24, 2019, 11:08am UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/1 "2019-01-24T11:08:32Z")

</div>

Hi !!!

**Rasa NLU version** : 0.14.0a1

**Operating system** (linux, …): Ubuntu 18.04.1 LTS

**Content of model configuration file** :

```auto
language: "en"

pipeline:
- name: "tokenizer_whitespace"
- name: "ner_crf"
- name: "intent_featurizer_count_vectors"
- name: "intent_classifier_tensorflow_embedding"
intent_tokenization_flag: true
intent_split_symbol: "+"

```

**Issue** :

RASA NLU server don’t delete model from my project, bellow I’m describing what I’m doing

**1. run rasa server**

```bash

$ python3 -m rasa_nlu.server --path /home/sal/Bot/RasaModels --max_training_processes 3 --response_log .LOGS/RASA_LOGS

```

**2. create and train model**

```bash
$ curl -XPOST "localhost:5000/train?project=/home/sal/Bot/RasaModels&model=MODEL_EN" -d @/home/sal/Bot/trainData/train_file_MODEL_EN.json | python -mjson.tool

```

**3. check rasa status**

```bash
$ curl localhost:5000/status | python -mjson.tool

```

_output_

```json
{
    "available_projects": {
        "/home/sal/Bot/RasaModels": {
            "available_models": [
                "fallback",
                "MODEL_EN"
            ],
            "current_training_processes": 0,
            "loaded_models": [
                "fallback"
            ],
            "status": "ready"
        },
        "default": {
            "available_models": [
                "fallback"
            ],
            "current_training_processes": 0,
            "loaded_models": [
                "fallback"
            ],
            "status": "ready"
        }
    },
    "current_training_processes": 0,
    "max_training_processes": 3
}

```

**4. Parse me model**

I get good result

```bash
$ curl -XPOST localhost:5000/parse -d '{"q":"hello there", "project": "/home/sal/Bot/RasaModels", "model": "MODEL_EN"}'

```

## PROBLEM

**I sending request to delete model**

```bash

(venv) sal@name:~/Bot$ curl -XDELETE "localhost:5000/models?project=/home/sal/Bot/RasaModels&model=MODEL_EN" | python -mjson.tool

 % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 14 0 14 0 0 2800 0 --:--:-- --:--:-- --:--:-- 2800
"MODEL_EN"

```

_RASA LOGs/output_

```auto

2019-01-24 11:59:52+0100 [-] "127.0.0.1" - - [24/Jan/2019:10:59:51 +0000] "DELETE /models?project=/home/sal/Bot/RasaModels&model=MODEL_EN HTTP/1.1" 200 14 "-" "curl/7.58.0"

```

**RASA** still keep the model and don’t delete it, even when i do **rasa status** , still show me the model like in point **3**

```bash
$ curl localhost:5000/status | python -mjson.tool

```

---

<div class="post-metadata">

**Author:** ![SalAlba](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/salalba/32/1248_2.png) [@SalAlba](https://forum.rasa.com/u/SalAlba)\
**Post date:** [January 24, 2019, 1:28pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/2 "2019-01-24T13:28:32Z")

</div>

**RASA** delete model just from memory.

```bash

curl -X DELETE localhost:5000/models?project=my_restaurant_search_bot&model=model_XXXXXX

```

> **[Rasa & Rasa Pro Documentation](https://rasa.com/docs/rasa/pages/http-api/)**

---

<div class="post-metadata">

**Author:** ![sfurao](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sfurao](https://forum.rasa.com/u/sfurao)\
**Post date:** [February 4, 2019, 6:30pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/3 "2019-02-04T18:30:10Z")

</div>

Hey SalAlba, im starting with version 0.14.0 of Rasa NLU ([Rasa & Rasa Pro Documentation](https://rasa.com/docs/nlu/http/#post-train)) and im with doubts about put my pipeline in json format.

My pipeline

 ![Capture](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c23e13d021a2534fc3a9f5c6eaea8e7409d72c6a.png)

Can you help?

---

<div class="post-metadata">

**Author:** ![SalAlba](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/salalba/32/1248_2.png) [@SalAlba](https://forum.rasa.com/u/SalAlba)\
**Post date:** [February 6, 2019, 11:49am UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/4 "2019-02-06T11:49:57Z")

</div>

[@sfurao](http://forum.rasa.com/u/sfurao) Tell me how I can help you ?? what are your question ??

---

<div class="post-metadata">

**Author:** ![sfurao](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sfurao](https://forum.rasa.com/u/sfurao)\
**Post date:** [February 6, 2019, 1:08pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/5 "2019-02-06T13:08:10Z")

</div>

Hey SalAlba i update to 0.14.0 rasa nlu version and I’m having trouble doing the training request through htttp

 ![Capture2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c43749c15e196057a0378ebf696f36eff5bb15e0.png) ![Capture3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/6b96967e9b03fbe8f868365789aefccb0bf8270c.png)i already did pip install rasa\_nlu[tensorflow] and pip install tensorflow , so im not undertanding the error!

i have pyhton3.4

---

<div class="post-metadata">

**Author:** ![SalAlba](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/salalba/32/1248_2.png) [@SalAlba](https://forum.rasa.com/u/SalAlba)\
**Post date:** [February 6, 2019, 1:15pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/6 "2019-02-06T13:15:02Z")

</div>

please print in terminal the Command bellow :

```bash
$ pip3 list

```

and what is your operating system on machine ?

---

<div class="post-metadata">

**Author:** ![sfurao](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sfurao](https://forum.rasa.com/u/sfurao)\
**Post date:** [February 6, 2019, 2:41pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/7 "2019-02-06T14:41:16Z")

</div>

![Capture4](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/cb6ac9be137d01f11aed822d92852571da2151cd.png)My operating system is centOS 6

---

<div class="post-metadata">

**Author:** ![simonline](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@simonline](https://forum.rasa.com/u/simonline)\
**Post date:** [February 27, 2019, 1:45pm UTC](https://forum.rasa.com/t/rasa-nlu-dont-unload-delete-model-from-project-and-machine/4627/8 "2019-02-27T13:45:38Z")

</div>

@SalAlba Did you find a solution for deleting the model from the list of `available_models`? I have the same issue with the latest Rasa NLU version (0.15.0a1).
