influxdb-client-go icon indicating copy to clipboard operation
influxdb-client-go copied to clipboard

Delete timeseries.

Open tdonhauser opened this issue 2 years ago • 0 comments

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")

tdonhauser avatar Feb 13 '23 15:02 tdonhauser