# Hooks removal from node

**URL:** <https://discourse.nodered.org/t/hooks-removal-from-node/67422>\
**Category:** General\
**Created:** [7 September 2022 06:40 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422 "2022-09-07T06:40:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [7 September 2022 06:40 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/1 "2022-09-07T06:40:35Z")

</div>

How can i disable any hook from a node or remove the hook?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 September 2022 07:24 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/2 "2022-09-07T07:24:25Z")

</div>

bBy 'hook' do you mean a wire attached to another node? If so, click on the wire (it should turn orange) and hit the delete key.

If that is not what you meant by 'hook' please explain a bit more.

---

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [7 September 2022 09:51 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/3 "2022-09-07T09:51:09Z")

</div>

there are some events in node red like onsend, onreceive. these events can be used for customization. can we anyhow disable these events/hooks?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 September 2022 10:12 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/4 "2022-09-07T10:12:12Z")

</div>

@Techie do mean the hooks described here: [Hooks API : Node-RED](https://nodered.org/docs/api/hooks/) ?

Is your requirement to prevent anything from registering hooks in the runtime and to disable the hooks api entirely? That isn't possible today - and doing so would break some nodes/plugins that rely on them. Can you expand on why you want to do this?

---

<div class="post-metadata">

**Author:** ![Techie](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Techie](https://discourse.nodered.org/u/Techie)\
**Post date:** [7 September 2022 10:24 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/5 "2022-09-07T10:24:02Z")

</div>

Yes, Hooks api I was talking about. I want to govern or control around customization what nodes can be extended or not..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 November 2022 10:24 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422/6 "2022-11-06T10:24:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
