Error: unknown command "and" for "delete"

I am trying to delete data with the command
C:\Program Files\influxdb2-client-2.3.0-windows-amd64>influx.exe delete --bucket solar --start 2022-04-20T21:38:00Z --stop 2022-04-21T00:34:00Z --predicate ‘_measurement=“solar” AND _field=“sfi”’

According to documentation “AND” is supported but I do get

Error: unknown command “AND” for “delete”

Bug?

@HB9VQQ Does lower case “and” also give an error?

If that doesn’t fix it then another thing to try is double-quotes outside and escaped double quotes inside,
--predicate "_measurement=\“solar\” and _field=\“sfi\” "

1 Like

Thanks Phill,

lower case did not work either but this has worked
influx.exe delete --bucket solar --start 2022-04-20T21:38:00Z --stop 2022-04-21T00:34:00Z --predicate "_measurement="solar" and _field="sfi" "

Thank you very much!