influx delete
The influx delete
command deletes points from an InfluxDB bucket. Identify points to delete using delete predicate syntax.
In InfluxDB OSS 2.0rc, the influx delete --predicate
flag has been disabled. The -p
, --predicate
flag is supported in InfluxDB Cloud and InfluxDB OSS 2.0 beta 16 or earlier.
Running influx delete
without the -p
or --predicate
flag deletes all data with timestamps between the specified --start
and --stop
times in the specified bucket.
Flags
Flag | Description | Input type | Maps to ? | |
---|---|---|---|---|
-c | —active-config | CLI configuration to use for command | string | |
-b | —bucket | Name of bucket to remove data from | string | INFLUX_BUCKET_NAME |
—bucket-id | Bucket ID | string | INFLUX_BUCKET_ID | |
—configs-path | Path to influx CLI configurations (default ~/.influxdbv2/configs ) | string | INFLUX_CONFIGS_PATH | |
-h | —help | Help for the delete command | ||
—host | HTTP address of InfluxDB (default http://localhost:8086 ) | string | INFLUX_HOST | |
-o | —org | Organization name | string | INFLUX_ORG |
—org-id | Organization ID | string | INFLUX_ORG_ID | |
-p | —predicate | Only supported in InfluxDB Cloud and InfluxDB OSS 2.0 beta 16 or earlier InfluxQL-like predicate string (see Delete predicate). | string | |
—skip-verify | Skip TLS certificate verification | |||
—start | Start time in RFC3339 format (i.e. 2009-01-02T23:00:00Z ) | string | ||
—stop | Stop time in RFC3339 format (i.e. 2009-01-02T23:00:00Z ) | string | ||
-t | —token | Authentication token | string | INFLUX_TOKEN |