Is that possible to delete value(s) with the PI Web API?
Thanks in advance
Yes you can delete values with the PI Web API. Using the 'streams' controller, the 'value' method (or 'recorded' for multiple values to be removed), and the 'updateOption' parameter set as 'remove' in a POST HTTP request, and include the timestamp and value to remove in the JSON payload.
I'm pretty sure the answer is "no".
Worked like a charm, thanks a lot
Thanks, Michael! It sure isn't easy to find in the documentation
I agree! I will bring this up with the developers now, and see what they think!
Thanks, deletion works in general.
What I had to take care of is that I am not transferring other properties than Timestamp and Value - for some other properties "remove" produces errors.
I can however not delete every point. For example this POST:
With the JSON Body
does for some unknown reason not delete this datapoint, although the POST returns 202.
Does someone have an idea what could be causing this?
Are you potentially attempting to delete the most recent value of a PI Point? If so, please note that this is not possible. You cannot delete a PI Points snapshot (event with the most recent timestamp).
Thank you Gregor, I think this is what was happening.
Retrieving data ...