Hi InfluxDB Community,
I’m currently trying to delete all data points associated with a specific tag (BatchId
) in my InfluxDB bucket, but I’m unable to achieve it. Here’s what I’ve done so far:
- I’m using the
DeleteApi
from the .NET InfluxDB client library. - I’ve set up a predicate to match all data for
BatchId
:
csharp
using var client = InfluxDBClientFactory.Create(influxUrl, token);
var deleteApi = client.GetDeleteApi();
var startTime = DateTime.MinValue.ToUniversalTime();
var stopTime = DateTime.MaxValue.ToUniversalTime();
var predicate = "“Tag=“BatchId””;
deleteApi.Delete(startTime, stopTime, predicate, bucket1, org);
Despite this, no data points are being deleted. I don’t receive any specific error messages, and the operation appears to complete without issues.