# Event will not delete

**URL:** https://forums.losant.com/t/event-will-not-delete/3999
**Category:** Help
**Tags:** workflow
**Created:** [August 12, 2021, 6:04pm UTC](https://forums.losant.com/t/event-will-not-delete/3999 "2021-08-12T18:04:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jackson\_Miller](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@Jackson\_Miller](https://forums.losant.com/u/Jackson_Miller)
#### Post date: [August 12, 2021, 6:04pm UTC](https://forums.losant.com/t/event-will-not-delete/3999/1 "2021-08-12T18:04:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/6c469f44ba612655c2e056c5c189dcd8e4ae917e.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/a/a823073797941cd53eb671c5cb943087d3006348.png)

I am trying to delete this event using my workflow and I have all appropriate details in the delete node, however when I run the workflow it does not delete. The result payload says:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/1ff56bc134bc8b86ec57bdf7c85a2415edbfa01f.png)

I have no idea why the delete node can not find this warning event. Any advice?

---

<div class="post-metadata">

### Author: ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)
#### Post date: [August 12, 2021, 11:23pm UTC](https://forums.losant.com/t/event-will-not-delete/3999/3 "2021-08-12T23:23:32Z")

</div>

Looking at your screenshots, I’m guessing it’s because `id === "{{device.id}}"` isn’t returning any events in your query. `id` refers to the **event ID** ; if you’re trying to query an event by its associated device, that query line should be `deviceId === "{{device.id}}"`.
