influxdata / influxdb-client-csharp

InfluxDB 2.x C# Client

Home Page:https://influxdata.github.io/influxdb-client-csharp/api/InfluxDB.Client.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

influx delete predicate not working

Nick135 opened this issue · comments

commented

Now I want to delete only certain field values. I don't get an error but the rows are not removed from db.

influx query works:

from(bucket: "mybucket")
|> range(start: -16d, stop: -0s)
|> filter(fn: (r) => r["_measurement"] == "SN001:2" and r["_field"] == "aeff_RMS" and r.SetpointReached=="False")

Result: _result
Table: keys: [_start, _stop, SerialNo, SetpointReached, SpindleSpeed, _field, _measurement, unit]
                   _start:time                      _stop:time  SetpointReached:string           _field:string     _measurement:string                      _time:time                  _value:float
------------------------------  ------------------------------  ----------------------  ----------------------  ----------------------  ------------------------------  ----------------------------
2023-01-01T12:09:30.593215800Z  2023-01-17T12:09:30.593215800Z                   False                aeff_RMS                 SN001:2 2023-01-01T12:53:54.127250000Z                     0.1149331

cmd.exe

influx delete --bucket "mybucket" --predicate "_measurement=\"SN001:2\" and _field="aeff_RMS" and SetpointReached="False"" --start "2023-12-22T12:09:30.593215800Z" --stop "2023-01-17T12:09:30.593215800Z" -t myToken -o myOrg

Hi,

This repo is for the C# influxdb client library, not for the CLI. I would re-open your issue over at the influx-cli repo. Let me know if I have misunderstood your issue.

Thanks