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

FlagDescriptionInput typeMaps to ?
-c—active-configCLI configuration to use for commandstring
-b—bucketName of bucket to remove data fromstringINFLUX_BUCKET_NAME
—bucket-idBucket IDstringINFLUX_BUCKET_ID
—configs-pathPath to influx CLI configurations (default ~/.influxdbv2/configs)stringINFLUX_CONFIGS_PATH
-h—helpHelp for the delete command
—hostHTTP address of InfluxDB (default http://localhost:8086)stringINFLUX_HOST
-o—orgOrganization namestringINFLUX_ORG
—org-idOrganization IDstringINFLUX_ORG_ID
-p—predicateOnly supported in InfluxDB Cloud and InfluxDB OSS 2.0 beta 16 or earlier InfluxQL-like predicate string (see Delete predicate).string
—skip-verifySkip TLS certificate verification
—startStart time in RFC3339 format (i.e. 2009-01-02T23:00:00Z)string
—stopStop time in RFC3339 format (i.e. 2009-01-02T23:00:00Z)string
-t—tokenAuthentication tokenstringINFLUX_TOKEN

delete