How do I stop/delete nodes from the command line

786 views
Skip to first unread message

Dan Hoover

unread,
Aug 13, 2017, 10:53:41 AM8/13/17
to Node-RED
I'm having a hard time finding the install folder for NR, much less delete/stop them. 

Is there a way to delete nodes from the cli?

Dave C-J

unread,
Aug 13, 2017, 1:07:34 PM8/13/17
to node...@googlegroups.com
cd ~/.node-red
npm uninstall node-xyz

Dan Hoover

unread,
Aug 13, 2017, 8:13:11 PM8/13/17
to Node-RED
Thanks for this

On Sunday, August 13, 2017 at 9:07:34 AM UTC-8, Dave C-J wrote:
cd ~/.node-red
npm uninstall node-xyz

Dan Hoover

unread,
Aug 14, 2017, 3:53:38 PM8/14/17
to Node-RED
I get no such directory when I try to do the cd command.  

I think the pi is preventing me from accessing it, therefore I can't delete notes that are stuck.

Colin Law

unread,
Aug 14, 2017, 4:03:37 PM8/14/17
to node...@googlegroups.com
If node red is started automatically on startup then look in
/var/log/syslog for the node red startup an you will see where your
flows are installed. I assume that you did install node red using the
method recommended for the pi.

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/18a43f51-21d2-429c-989a-a104ecff2c1f%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

David Caparrós

unread,
Aug 14, 2017, 5:07:07 PM8/14/17
to Node-RED
Hello Dan, you should look on the home from the user you use it when you install it, did you were logged as pi? as root? some other user? 

Try to log as root to have all permisions with "sudo su"

After this take a look inside the /root  or see how many user folder you have under /home  with "ls -la"

Then you can take a look inside each user folders.

as example:


pi@raspberrypi:/ $ sudo su
root@raspberrypi:/# cd root
root@raspberrypi:~# ls
root@raspberrypi:~# ls -la
total 40
drwx------   5 root root  4096 Aug 12 22:32 .
drwxr-xr-x  22 root root  4096 Jul  5 14:01 ..
-rw-------   1 root root    96 Aug 12 22:32 .bash_history
-rw-r--r--   1 root root   570 Jan 31  2010 .bashrc
drwxr-xr-x   3 root root  4096 Aug 12 22:19 .node-gyp
drwxr-xr-x 341 pi   pi   12288 Aug 13 22:54 .npm
-rw-r--r--   1 root root   140 Nov 19  2007 .profile
drwx------   3 root root  4096 Aug 12 21:47 .vnc
root@raspberrypi:~# cd /home
root@raspberrypi:/home# ls -la
total 12
drwxr-xr-x  3 root root 4096 Jul  5 12:41 .
drwxr-xr-x 22 root root 4096 Jul  5 14:01 ..
drwxr-xr-x 21 pi   pi   4096 Aug 13 23:11 pi


You need to locate the .node-red  folder as all will be inside this folder and this folder will be located on the home folder of the user who made the node-red installation.

Best regards

Julian Knight

unread,
Aug 15, 2017, 4:16:36 AM8/15/17
to Node-RED
Who are you logged in as when you run that command? The assumption is that you are logged in with the same user that is running Node-RED as others have said.

Might be worth taking a step back and thinking through how you installed NR in the first place and how you access the Pi. Inevitably, we tend to respond to questions with "standard" responses that fit most people but if you have done things differently, you will need to adjust things accordingly.

If you've used the "su" or "sudo -i" commands, you will no longer be the user you started as, you will be "root" user. In that case, the standard location would be "/homes/pi/.node-red" (I think, I'm not actually near my Pi at the moment).
Reply all
Reply to author
Forward
0 new messages