Trying to use InfluxDB v2.0.1, setting things up and experimenting, now i want to drop series or delete data and there seems to be no equivalents to drop series
or delete from
in flux.
Am I crazy?
Anaisdg
November 16, 2020, 5:14pm
2
Hello @dirtyfreebooter ,
Does this help?
not really, since
In InfluxDB OSS 2.0 , the influx delete --predicate
flag has been disabled.
Not sure why the predicate was removed.
I was experimenting and now i want to delete data for certain hosts, this is all telegraf/system data.
Anaisdg
November 24, 2020, 8:40pm
4
Hello,
I predicate works with Cloud but not OSS
opened 05:19PM - 24 Sep 20 UTC
closed 10:17PM - 02 Dec 20 UTC
area/storage
team/storage
area/2.x
## What
To ensure feature parity with Cloud 2.0, InfluxDB OSS 2.0 requires an i… mplementation of the _delete with predicate_ API via `/api/v2/delete`. This will require enhancements to the `tsdb` package and storage engine.
### Background
The API was disabled per #19580 and returns `501 Not Implemented` as there was no equivalent 1.x tsdb storage API to support this feature. The following `DeleteSeries` API was evaluated
https://github.com/influxdata/influxdb/blob/b917d8d9b069ffb416cb522c55bc1e7a82dcd34d/tsdb/store.go#L1266
however, due to differences between series keys in TSM 2.0 vs 1.x, it is unable to support fine-grained delete functionality for a predicate that targets a specific field:
```
_measurement = 'cpu' AND _field = 'usage_user'
```