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 |
|
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 |
Global flags
Global flag |
Description |
Input type |
--host |
HTTP address of InfluxDB (default http://localhost:9999 ) |
string |
--local |
Run commands against the local filesystem |
|
-t , --token |
API token to use in client calls |
string |