# How to delete the Node

**URL:** <https://discourse.nodered.org/t/how-to-delete-the-node/27573>\
**Category:** General\
**Created:** [31 May 2020 15:13 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573 "2020-05-31T15:13:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rozicdejan](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rozicdejan](https://discourse.nodered.org/u/rozicdejan)\
**Post date:** [31 May 2020 15:13 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/1 "2020-05-31T15:13:43Z")

</div>

I installed my node and need to uninstall it. I executed following and restarted node-red.

`sudo npm -g uninstall {path_to_node_source}`

But the palet still has that node. How to uninstall a node properly.?

Then I try with node-red-stop and npm uninstall npm-package

after restarting node-red, the node is still in use". How can i delete node? Try everything....

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [31 May 2020 15:16 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/2 "2020-05-31T15:16:27Z")

</div>

What node is it?

---

<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:** [31 May 2020 15:26 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/3 "2020-05-31T15:26:53Z")

</div>

If all else fails, delete it from .node-red/node\_modules and restart node-red.  
Also remove it from package.json

---

<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:** [31 May 2020 15:46 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/4 "2020-05-31T15:46:33Z")

</div>

1 - did you remove all occurrences of the node from your flow(s) and redeploy?  
2 - did you really do a global install of your flow?

to remove (a non global) node in the CLI, first change to the `.node-red` folder  
`cd .node-red` if usinsg linux  
then issue  
`npm remove node-red-contrib-nameofnode`

---

<div class="post-metadata">

**Author:** ![rozicdejan](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rozicdejan](https://discourse.nodered.org/u/rozicdejan)\
**Post date:** [31 May 2020 17:02 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/5 "2020-05-31T17:02:26Z")

</div>

Hi all,  
I did try everything but package was at the end deleted but with all the errors. So at the end, i reinstall node-red.

Did try it with .node-red and _uninstall_ but not with the _remove_ command. Did it with node-red-stop etc. but nothing helps regarding the errors.

Thanks to everyone

---

<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:** [31 May 2020 19:27 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/6 "2020-05-31T19:27:26Z")

</div>

> [@rozicdejan](#):
>
> nothing helps regarding the errors

If you had told us what the errors were we might have been able to help more.

---

<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:** [30 July 2020 19:27 UTC](https://discourse.nodered.org/t/how-to-delete-the-node/27573/7 "2020-07-30T19:27:39Z")

</div>

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