# Handler on node delete?

**URL:** https://forum.universal-robots.com/t/handler-on-node-delete/1010
**Category:** URCaps SDK
**Created:** [July 24, 2017, 2:36pm UTC](https://forum.universal-robots.com/t/handler-on-node-delete/1010 "2017-07-24T14:36:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon16416181](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@anon16416181](https://forum.universal-robots.com/u/anon16416181)
#### Post date: [July 24, 2017, 2:36pm UTC](https://forum.universal-robots.com/t/handler-on-node-delete/1010/1 "2017-07-24T14:36:08Z")

</div>

Hi all,

Is it possible for a `ProgramNodeContribution` to know if the user deleted it from the program list? Ideally, I’d like some sort of callback called when the user deletes a node, or some status flag that can be checked from withing a program node.

Thanks in advance,

---

<div class="post-metadata">

### Author: ![anon58863070](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@anon58863070](https://forum.universal-robots.com/u/anon58863070)
#### Post date: [July 24, 2017, 2:42pm UTC](https://forum.universal-robots.com/t/handler-on-node-delete/1010/2 "2017-07-24T14:42:00Z")

</div>

Hi,  
I recently searched for something like that, but couldn’t find anything. I think we can’t ☹

---

<div class="post-metadata">

### Author: ![anon16416181](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@anon16416181](https://forum.universal-robots.com/u/anon16416181)
#### Post date: [July 24, 2017, 5:02pm UTC](https://forum.universal-robots.com/t/handler-on-node-delete/1010/3 "2017-07-24T17:02:30Z")

</div>

Another thing I found out is that whenever a program node is copied (copied only, not pasted), a new instance is created. When pasting, one more is created, so the one that is created when pressing `Copy` is never placed in the program listing.

Perhaps what I’d need given that is a way to check if the program node is present in the robot program’s listing or not.
