-
Notifications
You must be signed in to change notification settings - Fork 185
Delete API Exposure #188
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
Comments
It appears that this exists, but is not exposed in the documentation?
|
The https://influxdb-client.readthedocs.io/en/latest/api.html#deleteapi |
@maxschommer thanks for using our client, we will take a look |
Could you make it clear in the doc how to delete from a open range? e.g. [2021-1-1, inf ) , I tried to pass none it didn't work. |
Also it feels unreasonable the delete API use iso timestamp while the write API use datetime object. |
The InfluxDB Delete API requires the
Good catch. Can you please create new issue for that. Meanwhile you can use following workaround: from datetime import datetime
from influxdb_client.client.util.date_utils import get_date_helper
date_helper = get_date_helper()
start = date_helper.to_utc(datetime(1970, 1, 1, 0, 0, 0, 0))
stop = date_helper.to_utc(datetime(2200, 1, 1, 0, 0, 0, 0))
self.delete_api.delete(start, stop, "", bucket=bucket.id, org=organization.id) |
Proposal:
Add Delete functionality to the api, exposing the
/api/v2/delete
endpoint.Use case:
For automated tests, I'd like to be able to send a series of test data to influx, and then clean up afterwards by deleting the data.
The text was updated successfully, but these errors were encountered: