# Dumb question about editing a node

**URL:** <https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434>\
**Category:** General\
**Created:** [18 October 2020 04:20 UTC](https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434 "2020-10-18T04:20:46Z")\
**Posts on this page:** 1\
**Showing post:** 63

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [30 October 2020 23:12 UTC](https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434/63 "2020-10-30T23:12:30Z")

</div>

> [@hepcat72](#):
>
> So does oneditdelete trigger if a node is deleted via selection & delete key (i.e. without opening the edit dialog)?

add `debugger` key word into your node, restart node-red, open the browser & devtools, give it a go. Y

As i said earlier, I've not used it but i suspect it will fire when deleted from the editor (before deploy - so in other words, still active in the runtime).

If you want to remove callbacks at the server side, I would suggest you need to use `this.on('close'` and its parameters to determine if there is a clean up (at server side) to do.

[reference](https://nodered.org/docs/creating-nodes/node-js#closing-the-node)

---

_[View the full topic](https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434)._
