Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing delete_measurement method #220

Closed
Andreone opened this issue Aug 2, 2018 · 3 comments
Closed

missing delete_measurement method #220

Andreone opened this issue Aug 2, 2018 · 3 comments

Comments

@Andreone
Copy link

Andreone commented Aug 2, 2018

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
Copy link
Contributor

dmke commented Aug 2, 2018

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
Copy link
Contributor

dmke commented Aug 2, 2018

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 dmke closed this as completed in a315bcc Aug 23, 2018
@dmke
Copy link
Contributor

dmke commented Aug 23, 2018

v0.6.1 will have #list_measurements and #delete_measurement(name) methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants