Uninstall node in node-red
To uninstall node in node-red,
- go to your
.node-redfolder using terminal
npm remove node-package-name
- re-start node-red
it will remove the package from node-red, you can also use this method from your custom node. it works perfectly.
Example of uninstalling package in node-red
Here, we are going to perfectly remove the package from node-red.
In the previous tutorial, I created a
node-env node where I have to explain how to use environment variables in node-red.
In this tutorial, we will delete this node completely. as you can see in the above picture.
let’s open the
.node-red folder in the terminal. and enter our remove package command.
For me it was.
1npm remove node-red-environment-variables-example
node-red-environment-variables-example is my node package name.
After this command run the
node-red command to restart the node-red.
You will see some warning if you are using deleted nodes in your flows, just select those nodes and press the
delete button and deploy it.
I hope it helps you, All the best 👍.
Read further tutorials if you are curious about node-red.
Follow me on Twitter
Join our email list and get notified about new content
No worries, I respect your privacy and I will never abuse your email.
Every week, on Tuesday, you will receive a list of free tutorials I made during the week (I write one every day) and news on other training products I create.