With PIO the model is managed by the user, not PIO. The input is separate and can be deleted without affecting the model.
Each Engine handles model’s it’s own way but most use the model storage in pio-env. So deleting those will get rid of the model. The UR keeps the model in ES under the “indexName” and “typeName” in engine.json. So you need to delete the index if you want to stop queries from working. The UR maintain’s one live copy of the model and removes old ones after a new one is made live so there will only ever be one model (unless you have changed your indexName often) On Dec 21, 2017, at 4:58 AM, Noelia Osés Fernández <[email protected]> wrote: Hi all! I have executed a pio app data-delete MyApp. The command has outputted the following: [INFO] [HBLEvents] Removing table pio_event:events_4... [INFO] [App$] Removed Event Store for the app ID: 4 [INFO] [HBLEvents] The table pio_event:events_4 doesn't exist yet. Creating now... [INFO] [App$] Initialized Event Store for the app ID: 4 However, I executed curl -H "Content-Type: application/json" -d ' { }' http://localhost:8000/queries.json <http://localhost:8000/queries.json> after deleting the data and I still get the same results as before deleting the data. Why is this happening? I expected to get either an error message or an empty result like {"itemScores":[]}. Any help is much appreciated. Best regards, Noelia
