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

Delete a single measurement #36

Closed
tonioo opened this issue Nov 13, 2019 · 2 comments
Closed

Delete a single measurement #36

tonioo opened this issue Nov 13, 2019 · 2 comments
Labels
question Further information is requested
Milestone

Comments

@tonioo
Copy link

tonioo commented Nov 13, 2019

Hi,
I see it is possible to delete data from a specific bucket using this client but I'd like to know if it is possible to delete a single measurement?
Thank you.

@bednar bednar added the question Further information is requested label Nov 13, 2019
@bednar bednar added this to the 1.0.1 milestone Nov 13, 2019
@bednar
Copy link
Contributor

bednar commented Nov 13, 2019

Hi @tonioo

You could specify a predicate as is described here:

https://v2.docs.influxdata.com/v2.0/reference/syntax/delete-predicate/#delete-points-with-a-specific-measurement

and uses in the client:

self.delete_api.delete(start, stop, '_measurement="sensorData"', bucket_id=bucket_id, org_id=organization_id)

Regards

@tonioo
Copy link
Author

tonioo commented Nov 13, 2019

Thank you @bednar !

@tonioo tonioo closed this as completed Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants