# Suppress / delete URCAP specific program via java API available?

**URL:** <https://forum.universal-robots.com/t/suppress-delete-urcap-specific-program-via-java-api-available/3123>\
**Category:** Java\
**Created:** [November 15, 2018, 4:13pm UTC](https://forum.universal-robots.com/t/suppress-delete-urcap-specific-program-via-java-api-available/3123 "2018-11-15T16:13:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon12495347](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anon12495347](https://forum.universal-robots.com/u/anon12495347)\
**Post date:** [November 15, 2018, 4:13pm UTC](https://forum.universal-robots.com/t/suppress-delete-urcap-specific-program-via-java-api-available/3123/1 "2018-11-15T16:13:14Z")

</div>

Is there an API function available to Suppress the current URCAP created program Node?  
Similar question for ‘Delete’ the current URCAP created program Node ?

Functionality should be equal to what is there available in the Structure tab with buttons ‘Suppress’ and ‘Delete’.  
Reason for this request: having a ‘Suppress’ and ‘Delete’ button in the (URCAP defined) ‘Command’ tab will be much easier then first switching to ‘Structure’ tab and back again to ‘Command’ tab.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [November 16, 2018, 7:01am UTC](https://forum.universal-robots.com/t/suppress-delete-urcap-specific-program-via-java-api-available/3123/2 "2018-11-16T07:01:00Z")

</div>

u can use the function removeChild() of a TreeNode Object and search the Node to be deleted with getChildren()

for rootTreeNodes itself it is not yet possible
