delete: Delete Nodes and Relationships

Description Usage Arguments Details Examples

Description

Delete node or relationship object(s) from the graph.

Usage

1

Arguments

...

A list of entities to delete.

Details

Nodes with incoming or outgoing relationships cannot be deleted. All incoming and outgoing relationships need to be deleted before the node can be deleted.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)

alice = createNode(graph, name = "Alice")
bob = createNode(graph, name = "Bob")

rel = createRel(alice, "WORKS_WITH", bob)

delete(rel)
delete(alice, bob)

## End(Not run)


Search within the RNeo4j package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.