docs-v2/content/v2.0/reference/cli/influx/delete/_index.md

1.9 KiB
Raw Blame History

title description menu weight v2.0/tags
influx delete Delete data from InfluxDB The 'influx delete' command deletes points from an InfluxDB bucket.
v2_0_ref
name parent
influx delete influx
101
delete

The influx delete command deletes points from an InfluxDB bucket.

Usage

influx delete [flags]

{{% warn %}} 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. {{% /warn %}}

Flags

Flag Description Input type
-b, --bucket The name of bucket to remove data from string
--bucket-id The ID of the bucket to remove data from string
-h, --help Help for the delete command
-o, --org The name of the organization that owns the bucket string
--org-id The ID of the organization that owns the bucket string
-p, --predicate InfluxQL-like predicate string (see Delete predicate) string
--start The start time in RFC3339 format (i.e. 2009-01-02T23:00:00Z) string
--stop The stop time in RFC3339 format (i.e. 2009-01-02T23:00:00Z) string

{{% influx-cli-global-flags %}}