InfluxDB Docs

influx delete – Delete data from InfluxDB

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 type
-b, --bucketThe name of bucket to remove data fromstring
--bucket-idThe ID of the bucket to remove data fromstring
-h, --helpHelp for the delete command
-o, --orgThe name of the organization that owns the bucketstring
--org-idThe ID of the organization that owns the bucketstring
-p, --predicateInfluxQL-like predicate string (see Delete predicate)string
--startThe start time in RFC3339 format (i.e. 2009-01-02T23:00:00Z)string
--stopThe stop time in RFC3339 format (i.e. 2009-01-02T23:00:00Z)string

Global flags

Global flagDescriptionInput type
--hostHTTP address of InfluxDB (default http://localhost:9999)string
--localRun commands against the local filesystem
-t, --tokenAPI token to use in client callsstring