# Hiii.... So I wanted to remove few created nodes with using code . So how can i remove ? without "npm remove \<name-of-module\>"

**URL:** https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754
**Category:** General
**Tags:** node-red-dashboard
**Created:** [26 October 2021 12:11 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754 "2021-10-26T12:11:34Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [26 October 2021 12:11 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/1 "2021-10-26T12:11:34Z")

</div>

For removing few custom nodes.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 October 2021 12:24 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/2 "2021-10-26T12:24:06Z")

</div>

How did you install them and why don't you want to use npm?

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [26 October 2021 12:28 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/3 "2021-10-26T12:28:22Z")

</div>

hi.. @Colin I have installed through npm but....  
we cannot use npm commands at run time  
we want to filter the nodes that we dont want  
And I am trying through coding

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 October 2021 12:45 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/4 "2021-10-26T12:45:21Z")

</div>

> [@prj](#):
>
> we want to filter the nodes

What exactly are you trying to do? If you are trying to uninstall nodes then you have to use npm (which is what the palette manager in the editor does). You can call npm from code if you want to. If you just want to hide nodes so they are not visible in the palette then that is a different issue.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [26 October 2021 12:48 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/5 "2021-10-26T12:48:18Z")

</div>

yes.. I wanted to hide nodes from palette through code

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [26 October 2021 12:58 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/6 "2021-10-26T12:58:50Z")

</div>

In that case I suggest starting a new thread asking how to hide nodes in the palette using code.  
I do notice that there is an admin api for uninstalling nodes, which is what I thought you were asking for initially. [Admin API Methods : Node-RED](https://nodered.org/docs/api/admin/methods/) Perhaps you can use that.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [26 October 2021 13:00 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/7 "2021-10-26T13:00:05Z")

</div>

You can not remove (or just hide) nodes from the palette at runtime unless you uninstal them via the palette manager/admin api.

If you uninstall with npm outside of Node-RED then it will require a restart for them to be remove (and may cause issues if not restarted).

You can filter the view of the installed nodes using the search box at the top of the palette to find things more easily.

You can exclude core nodes using the `settings.js` file using the `nodeExcludes` option, for 3rd party nodes then you will need to either not install them in the first place or remove them via the palette manager (or npm and restart).

You can also disable the palette manager if you want to stop users from being able to install new nodes.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [27 October 2021 12:58 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/8 "2021-10-27T12:58:14Z")

</div>

I am trying to use "PUT" method for disabling and enabling nodes .I am having multiple nodes and trying to remove few of them using code so how can i do with this PUT method

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [27 October 2021 13:19 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/9 "2021-10-27T13:19:53Z")

</div>

Explain what exactly you tried. I assume you mean you are using [this](https://nodered.org/docs/api/admin/methods/put/nodes/module/set/) method?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [27 October 2021 14:56 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/10 "2021-10-27T14:56:43Z")

</div>

Does disabling it hide it? I thought the only option was to uninstall the node.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [28 October 2021 06:43 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/11 "2021-10-28T06:43:08Z")

</div>

yes I used this same method in my case I have installed "lower-case" node through npm and I am going to disabled through it using PUT api method . But still not disabling node from palette

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [29 October 2021 08:27 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/12 "2021-10-29T08:27:48Z")

</div>

If you have got this working (which I deduce you have from another thread) then please post what the problem was, for others to see.

---

<div class="post-metadata">

### Author: ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://discourse.nodered.org/u/prj)
#### Post date: [29 October 2021 08:33 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/13 "2021-10-29T08:33:01Z")

</div>

hii...it works now ...thank you for your ans. I solved this using [PUT /nodes/:module/:set : Node-RED](https://nodered.org/docs/api/admin/methods/put/nodes/module/set/)  
this method. Thanks You..........

---

<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: [12 November 2021 08:33 UTC](https://discourse.nodered.org/t/hiii-so-i-wanted-to-remove-few-created-nodes-with-using-code-so-how-can-i-remove-without-npm-remove-name-of-module/52754/14 "2021-11-12T08:33:40Z")

</div>

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