Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Delete API not working #865

Closed
dilipbm opened this issue Nov 11, 2020 · 2 comments
Closed

Delete API not working #865

dilipbm opened this issue Nov 11, 2020 · 2 comments

Comments

@dilipbm
Copy link

dilipbm commented Nov 11, 2020

  • InfluxDB version: 2.0.0-rc.3
  • InfluxDB-python version: 1.9.0
  • Python version: 3.7.1
  • Operating system version: macOS 10.13.6
token = "TOKEN"
org = "ORG"
bucket = "BUCKET"

client = InfluxDBClient(url=HOST", token=token)

delete_api = client.delete_api()
delete_api.delete(
    "1970-01-01T00:00:00Z",
    "2020-12-01T00:00:00Z",
    '_measurement="conso_elec"',
    bucket=bucket,
    org=org,
)

This code throw an Not implemented exception. It seems to me that the delete with predicate API /api/v2/delete has been disabled in this version of influxdb (https://docs.influxdata.com/influxdb/v2.0/reference/syntax/delete-predicate/)

@newskooler
Copy link

You are writing in the wrong influx python repo.
It should be here: https://github.com/influxdata/influxdb-client-python
I noticed this today and just figured out that this was indeed a bug which needs fixing: influxdata/influxdb-client-python#168

@dilipbm
Copy link
Author

dilipbm commented Nov 17, 2020

Thank you snenkov. Of cours it is not the right one

@dilipbm dilipbm closed this as completed Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants