influxdb 2.0 delete measurement code example
Example 1: influxdb delete measurement based on date
# InfluxDB: delete from measurement, based on time
DELETE FROM foo WHERE time > '2014-06-30' and time < '2014-06-30 15:16:01'
Example 2: influxdb 2.0 delete measurement
influx delete \
--token token \ # Needed for me but not in source
--org organization \ # Needed for me but not in source
--bucket example-bucket \
--start 1970-01-01T00:00:00Z \
--stop $(date +"%Y-%m-%dT%H:%M:%SZ") \
--predicate '_measurement="example-measurement"'