Delete predicate syntax

A delete predicate is comprised of one or more predicate expressions. The left operand of the predicate expression is the column name. The right operand is the column value. Operands are compared using . Use logical operators to combine two or more predicate expressions.

Example delete predicate

With InfluxDB 2.1, delete predicates can use any column or tag except _time, _field,or _value.

Comparison operators compare left and right operands and return true or false.

OperatorDescriptionExampleResult
=Equal to“abc”=”abc”true

The following will delete points in the sensorData measurement:

Delete points by tag set

The delete predicate syntax has the following limitations.

  • Delete predicates do not support regular expressions.
  • Delete predicates do not support the OR logical operator.
  • Delete predicates only support equality (=), not inequality (!=).
  • Delete predicates can use any column or tag except _time , _field, or .

syntax