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.
npm 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.