# \[IGN-8235\]Can't delete gateway message handler

**URL:** <https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164>\
**Category:** Ignition\
**Created:** [August 21, 2023, 3:56pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164 "2023-08-21T15:56:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [August 21, 2023, 3:56pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/1 "2023-08-21T15:56:58Z")

</div>

I created a gateway message handler and realized I needed it on a different gateway. As a result I did not put any lines into the script. I saved it quick and went back to delete it and now I don't have the option to change or delete it via a project on the gateway. I can edit the name and add a new one but the one I want to delete, the option to delete the script. It comes up with a compile error because the script is blank which makes sense but I still have no way to delete it. I am logged in as an administrator so I should have rights to delete, edit, etc. I tried enabling and disabling but no luck with either.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/8886a20a3cd14652b2f4168f9576decc018284d4.png)

Any ideas?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 21, 2023, 4:11pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/2 "2023-08-21T16:11:34Z")

</div>

Do you have any other gateway event handlers? If not, just delete the resource from the filesystem and wait five minutes.

If you do have others, you might want to get support involved.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 21, 2023, 4:11pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/3 "2023-08-21T16:11:45Z")

</div>

This is a bug, and unfortunately the workaround will also end up deleting all the other gateway event scripts you have.

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [August 21, 2023, 4:22pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/4 "2023-08-21T16:22:54Z")

</div>

So it would mean deleting a folder within the specific Ignition project residing on the computer running the gateway. There is one other gateway script but I could recreate if needed. Is there any specific instructions on the workaround like the actual folder, etc.?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 21, 2023, 4:39pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/5 "2023-08-21T16:39:04Z")

</div>

Delete the entire folder at `$ignitionHome/data/projects/$yourProjectName/ignition/event-scripts`.  
If you're on a new enough version, you can then run `system.project.scan()` on the gateway or wait the ~5 minutes for the next project scan to pick up these changes. In an already running designer, you'll have to update the project to bring the changes in:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/34998d02052f9af4c616d4194f31bda1aa15a870.png)

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [August 21, 2023, 6:18pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/6 "2023-08-21T18:18:47Z")

</div>

Worked perfect, thanks

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 23, 2023, 10:06pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/7 "2023-08-23T22:06:55Z")

</div>

What version of Ignition are you using?

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [August 24, 2023, 1:11pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/8 "2023-08-24T13:11:53Z")

</div>

version 8.1.21

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 24, 2023, 1:50pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/9 "2023-08-24T13:50:27Z")

</div>

Ah, good. This was already fixed in 8.1.23 🙂

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [August 24, 2023, 1:52pm UTC](https://forum.inductiveautomation.com/t/ign-8235-cant-delete-gateway-message-handler/78164/10 "2023-08-24T13:52:34Z")

</div>

Ok, good to know! Thanks again for the help
