InfluxDB Docs

influx delete

The influx delete command deletes points from an InfluxDB bucket.

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
-h, --helpHelp for the delete command
-o, --orgOrganization namestringINFLUX_ORG
--org-idOrganization IDstringINFLUX_ORG_ID
-p, --predicateInfluxQL-like predicate string (see Delete predicate)string
--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

Global Flags

FlagDescriptionInput typeMaps to ?
--hostHTTP address of InfluxDB (default http://localhost:9999)stringINFLUX_HOST
--localRun commands against the local filesystem
--skip-verifySkip certificate verification (use when connecting over TLS with a self-signed certificate)
-t, --tokenAPI token to use in client callsstringINFLUX_TOKEN

New! Cloud or OSS?