Skip to content
Advertisement

Can you delete data from influxdb?

How do you delete data from influxdb?

The documentation shows it should be as simple as:

For some reason, influxdb rejects my delete statements saying “Delete queries can’t have where clause that doesn’t reference time”

I want to delete these 5 entries whos duration > 1000 seconds enter image description here

This should be a valid sql statement, yet it fails

enter image description here

None of these delete statements work either

Documentation reference

https://docs.influxdata.com/influxdb/v2.0/query-data/influxql/

Update

Additional queries

Maybe this is a bug?

https://github.com/influxdb/influxdb/issues/975
https://github.com/influxdb/influxdb/issues/84

Advertisement

Answer

It appears that you can do this in influxdb 0.9. For instance, here’s a query that just succeeded for me:

(Per generous comment by @MuratCorlu, I’m reposting my earlier comment as an answer…)

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement