# Yet another delete question, delete all measurements from one device?

**URL:** <https://community.influxdata.com/t/yet-another-delete-question-delete-all-measurements-from-one-device/28418>\
**Category:** InfluxDB 2\
**Created:** [February 1, 2023, 6:30pm UTC](https://community.influxdata.com/t/yet-another-delete-question-delete-all-measurements-from-one-device/28418 "2023-02-01T18:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenrysCat](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@HenrysCat](https://community.influxdata.com/u/HenrysCat)\
**Post date:** [February 1, 2023, 6:30pm UTC](https://community.influxdata.com/t/yet-another-delete-question-delete-all-measurements-from-one-device/28418/1 "2023-02-01T18:30:28Z")

</div>

I want to delete all measurments for the device ‘Outside’

My command,

```auto
influx delete \
  --bucket dht22 \
  --org esp8266 \
  --token 4WW43qswEQUdpTnWedvhuyQa8ftEgi0vJNv6zfTV0bOhtSdrMYei-MJYSCpawRxcKkNs1NBrMf1ORV0kxdMK23D== \
  --start 2023-01-31T19:00:00.00Z \
  --stop 2023-02-01T18:24:00.00Z \
  --predicate '_measurement="Outside"'

```

But it does not work, no error just not deleting anything?

 ![Screenshot 2023-02-01 at 18.26.16](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/d/d8a3388977bd493c565658d6299ad0a597541d71.png)

---

<div class="post-metadata">

**Author:** ![HenrysCat](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@HenrysCat](https://community.influxdata.com/u/HenrysCat)\
**Post date:** [February 2, 2023, 6:52am UTC](https://community.influxdata.com/t/yet-another-delete-question-delete-all-measurements-from-one-device/28418/2 "2023-02-02T06:52:11Z")

</div>

OK solved it myself again, in case anyone needs it the command was.

```auto
--predicate '_measurement="measurements" AND device="Outside"'

```
