public async Task TestDeletePointsAsyncError()
        {
            var measurement = "hara-kiri-half";
            var client      = new InfluxDBClient(influxUrl, dbUName, dbpwd);
            var points      = await CreateTestPoints(measurement, 10);

            points.Skip(5).Select(p => { p.Tags.Add("purge", "'yes'"); return(true); });
            var r = await client.PostPointsAsync(dbName, points);

            await AssertEx.ThrowsAsync <InfluxDBException>(() => client.DeletePointsAsync(new InfluxDatabase(invalidDbName), new InfluxMeasurement(measurement), whereClause: new List <string>()
            {
                "purge = yes", $"time() > {DateTime.UtcNow.AddDays(-4).ToEpoch(TimePrecision.Hours)}"
            }));
        }
        public async Task TestDeletePointsAsync()
        {
            var measurement = "hara-kiri-half";
            var client      = new InfluxDBClient(influxUrl, dbUName, dbpwd);
            await client.CreateDatabaseAsync(dbName);

            var points = await CreateTestPoints(measurement, 10);

            points.Skip(5).Select(p => { p.Tags.Add("purge", "'yes'"); return(true); });
            var r = await client.PostPointsAsync(dbName, points);

            r = await client.DeletePointsAsync(
                new InfluxDatabase(dbName),
                new InfluxMeasurement(measurement),
                whereClause : new List <string>()
            {
                "purge = yes",
                $"time() > {DateTime.UtcNow.AddDays(-4).ToEpoch(TimePrecision.Hours)}"
            });

            Assert.IsTrue(r, "DropMeasurementAsync retunred false");
        }