Posts

Showing posts from July, 2020

Mass removal of Edges and Nodes - DELETE

Deleting of Nodes:  To delete a node it should have no relationships Delete all nodes and relationships match (n)-[r]-() delete n, r Delete all nodes which have no relationships match (n) delete n Delete only ExampleNodes which have no relationships match (n:ExampleNode) delete n Delete all relationships match (n)-[r]-() delete r Delete only ExampleRelation relationships match (n)-[r:ExampleRelation]-() delete r

Stopping and Starting the Neo4j Database

Controlling the service System services are controlled with the systemctl command. It accepts a number of commands and follows the format: systemctl {start|stop|restart} neo4j you may find that you need to prefix the systemctl command with sudo like: sudo systemctl stop neo4j looking at the output of the status command we get :   sudo systemctl status neo4j ● neo4j.service - Neo4j Graph Database    Loaded: loaded (/etc/systemd/system/neo4j.service; enabled; vendor preset: enabled)    Active: active (running) since Thu 2020-07-23 09:53:29 UTC; 1h 33min ago  Main PID: 958 (pre-neo4j.sh)     Tasks: 64    Memory: 14.3G       CPU: 22min 1.740s    CGroup: /system.slice/neo4j.service            ├─ 958 /bin/bash /etc/neo4j/pre-neo4j.sh            ├─ 996 /bin/sh /etc/neo4j/reset-password-aws.sh            ├─ 997 /usr/bin/java -cp /va...