InfluxDB Docs

influx delete

The influx delete command deletes points from an InfluxDB bucket. Identify points to delete using delete predicate syntax.

Usage

influx delete [flags]

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 ?
-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:9999)stringINFLUX_HOST
-o--orgOrganization namestringINFLUX_ORG
--org-idOrganization IDstringINFLUX_ORG_ID
-p--predicateInfluxQL-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

New! Cloud or OSS?