# Help please delete data with Influx CLI

**URL:** <https://community.influxdata.com/t/help-please-delete-data-with-influx-cli/30028>\
**Category:** InfluxDB 2\
**Created:** [May 22, 2023, 8:20am UTC](https://community.influxdata.com/t/help-please-delete-data-with-influx-cli/30028 "2023-05-22T08:20:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon13751922](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@anon13751922](https://community.influxdata.com/u/anon13751922)\
**Post date:** [May 22, 2023, 8:20am UTC](https://community.influxdata.com/t/help-please-delete-data-with-influx-cli/30028/1 "2023-05-22T08:20:46Z")

</div>

Hm what Im doing wrong here?  
I’m trying to delete data but Ive get an error:

`influx delete --bucket home_assistant --start 2020-03-01T00:00:00Z --stop 2023-11-14T00:00:00Z --predicate "_measurement=\"°C\" and friendly_name=\”WTW uitlaattemperatuur\""`

Error: failed to delete data: 400 Bad Request: error decoding json body: bad logical expression, at position 22

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/7/74c686f7c7fb805d98184ea6890fcee04181a95f.png)

---

<div class="post-metadata">

**Author:** ![fercasjr](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@fercasjr](https://community.influxdata.com/u/fercasjr)\
**Post date:** [May 23, 2023, 1:26pm UTC](https://community.influxdata.com/t/help-please-delete-data-with-influx-cli/30028/3 "2023-05-23T13:26:03Z")

</div>

I Think data should be a json object containing start, stop and predicate. I can give you a curl template that works on windows cmd and you can try it

```auto
curl "http://localhost:8086/api/v2/delete?org=ORGNAME&bucket=BUCKETNAME" ^
  -H "Authorization: Token INFLUXDBTOKEN" ^
  -H "Content-Type: application/json" ^
  --data "{\"start\": \"2020-04-09T00:00:00Z\",\"stop\": \"2023-04-09T12:00:00Z\", \"predicate\": \"TAGNAME=\u0022TAGVALUE\u0022\"}"

```

u0022 Is the Unicode for " that’s the only way I found to add the pas them inside of the Json (a string inside a string)
