missing delete_measurement method
Closed this issue · 3 comments
Andreone commented
There's a delete_series
method on InfluDB client, but no delete_measurement
.
With InfluxDB Enterprise 1.5, deleting a serie requires a restart of the influx service to clean the index. Deleting a measurement does not requires a restart.
dmke commented
Yeah, there are many query methods missing.
As a workaround, this should work:
name = "name_of_measurement"
client.execute("DROP MEASUREMENT #{name}"), db: client.database)
dmke commented
Ah, scratch that. Client#execute
is private. I don't encurage client.send(:execute, "DROP MEASUREMENT #{name}", db: client.database)
;-)
I will add some convenience methods later this week (unless, of course, you're faster opening a PR).
dmke commented
v0.6.1 will have #list_measurements
and #delete_measurement(name)
methods.