---
title: Delete (v2 compatible)
description: Delete data using InfluxDB v2-compatible predicate expressions. Provides forward compatibility with InfluxDB 2.x client libraries and InfluxDB Enterprise 1.8+.
url: https://docs.influxdata.com/enterprise_influxdb/v1/api/delete-v2-compatible/
estimated_tokens: 418
publisher: InfluxData
canonical: https://docs.influxdata.com/enterprise_influxdb/v1/api/delete-v2-compatible/
---

[Download InfluxDB Enterprise v1 API Spec](/openapi/influxdb-enterprise-v1-openapi.yml)

Delete data using InfluxDB v2-compatible predicate expressions. Provides forward compatibility with InfluxDB 2.x client libraries and InfluxDB Enterprise 1.8+.

POST`/api/v2/delete`v2

### Delete data (v2 compatible)

Delete data from InfluxDB Enterprise using predicate expressions.
Supports deletion by tag value, timestamp, and measurement.

**Predicate Syntax:**

```
_measurement="example" AND tagKey="tagValue"
```

See [delete predicate syntax](/influxdb/v2/reference/syntax/delete-predicate/)for detailed syntax and [limitations](/influxdb/v2/reference/syntax/delete-predicate/#limitations).

#### Parameters

##### Query parameters

`bucket`requiredstring

Database and retention policy in format `database/retention-policy`

`precision`string

Timestamp precision

Allowed values:`ns`, `us`, `ms`, `s`

#### Request bodyrequired

Content-Type:`application/json`

`predicate`string

InfluxQL-like predicate expression to filter data to delete.
Example: `_measurement="example" AND tagKey="tagValue"`

`start`requiredstring \<date-time\>

Start time (inclusive)

`stop`requiredstring \<date-time\>

Stop time (exclusive)

Example request[Ask AI about this](#)

```sh
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

204Delete successful

400Bad request

`error`requiredstring

Error message

401Unauthorized

`error`requiredstring

Error message
