Delete (v2 compatible)
/api/v2/delete
v2Delete data (v2 compatible)
Delete data from InfluxDB using predicate expressions. Supports deletion by tag value, timestamp, and measurement.
Predicate Syntax:
_measurement="example" AND tagKey="tagValue"See delete predicate syntax for detailed syntax and limitations.
Parameters
Query parameters
bucket
required
stringdatabase/retention-policyprecision
stringns
, us
, ms
, sRequest body required
application/jsonpredicate
string_measurement="example" AND tagKey="tagValue"start
required
string <date-time>stop
required
string <date-time>curl --request POST \
"http://localhost:8086/api/v2/delete?bucket=BUCKET" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{
"predicate": "PREDICATE",
"start": "START",
"stop": "STOP"
}'Responses
error
required
stringerror
required
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.