I created multiple fields to test output in grafana, however I want to delete the unwanted fields from influxdb, is there a way?
Asked
Active
Viewed 6,666 times
1 Answers
3
Q: I want to delete the unwanted fields from influxdb, is there a way?
A: Short answer. No. Up until the latest release 1.4.0, there is no straightforward way to do this.
The reason why this is so was because Influxdb
is explicitly designed to optimise point creation. Thus functionalities for the "UPDATE" and "DELETE" side of things are compromised for it.
To drop fields of a given measurement, the easiest way would be to;
Retrieve
the data out firstModify
its contentDrop
the measurementRe-insert
the modified data back
Reference:
https://docs.influxdata.com/influxdb/v1.4/concepts/insights_tradeoffs/

Samuel Toh
- 18,006
- 3
- 24
- 39