Hm what Im doing wrong here?
I’m trying to delete data but Ive get an error:
influx delete --bucket home_assistant --start 2020-03-01T00:00:00Z --stop 2023-11-14T00:00:00Z --predicate "_measurement=\"°C\" and friendly_name=\”WTW uitlaattemperatuur\""
Error: failed to delete data: 400 Bad Request: error decoding json body: bad logical expression, at position 22
I Think data should be a json object containing start, stop and predicate. I can give you a curl template that works on windows cmd and you can try it
curl "http://localhost:8086/api/v2/delete?org=ORGNAME&bucket=BUCKETNAME" ^
-H "Authorization: Token INFLUXDBTOKEN" ^
-H "Content-Type: application/json" ^
--data "{\"start\": \"2020-04-09T00:00:00Z\",\"stop\": \"2023-04-09T12:00:00Z\", \"predicate\": \"TAGNAME=\u0022TAGVALUE\u0022\"}"
u0022 Is the Unicode for " that’s the only way I found to add the pas them inside of the Json (a string inside a string)