predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Ferrel <>
Subject Re: App still returns results after pio app data-delete
Date Tue, 02 Jan 2018 17:53:42 GMT
Have a look at the ES docs on their site. There are several ways, from sending a JSON command
to deleting the data directory depending on how clean you want ES to be.

In general my opinion is that PIO is an integration framework for several services and for
the majority of applications you will not need to deal directly with the services except for
setup. This may be an exception. In all cases you may find it best to seek guidance from the
support communities or docs of those services.

If you are sending a REST JSON command directive it would be as shown here:

$ curl -XDELETE 'http://localhost:9200/<index_name>/'

The Index name is named in the UR engine.json or in pio-env depending on which index you want
to delete.

On Jan 2, 2018, at 12:22 AM, Noelia Osés Fernández <> wrote:

Thanks for the explanation!

How do I delete the ES index? is it just DELETE /my_index_name?

Happy New Year!

On 22 December 2017 at 19:42, Pat Ferrel < <>>
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

On Dec 21, 2017, at 4:58 AM, Noelia Osés Fernández < <>>

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 Osés Fernández, PhD
Senior Researcher | Investigadora Senior <>
+[34] 943 30 92 30
Data Intelligence for Energy and Industrial Processes | Inteligencia de Datos para Energía
y Procesos Industriales

 <>  <>

member of:  <>

Legal Notice - Privacy policy <>

View raw message