influxdata / influxdb-client-go

InfluxDB 2 Go Client
MIT License
609 stars 116 forks source link

Delete timeseries. #374

Open tdonhauser opened 1 year ago

tdonhauser commented 1 year ago

Hello,

can someone tell me how to clear a bucket from its data without deleting the bucket? I tried to use the following command, but it needs the start/end time to work. Is there another way?

err := deleteAPI.DeleteWithName(ctx, "org", "my-bucket", time.Now().Add(-time.Hour), time.Now(), "b=static")