File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 355
355
body
356
356
table
357
357
Explainer
358
+ propname
359
+ propvalue
358
360
ro
Original file line number Diff line number Diff line change @@ -14,15 +14,27 @@ Arguments: `Graph name`
14
14
15
15
Returns: ` String indicating if operation succeeded or failed. `
16
16
17
- ``` sh
17
+ {% capture shell_0 %}
18
18
GRAPH.DELETE us_government
19
- ```
19
+ {% endcapture %}
20
+
21
+ {% capture python_0 %}
22
+ graph.delete()
23
+ {% endcapture %}
24
+
25
+ {% include code_tabs.html id="tabs_0" shell=shell_0 python=python_0 %}
20
26
21
27
Note: To delete a node from the graph (not the entire graph), execute a ` MATCH ` query and pass the alias to the ` DELETE ` clause:
22
28
23
- ```
29
+ {% capture shell_1 %}
24
30
GRAPH.QUERY DEMO_GRAPH "MATCH (x: Y {propname: propvalue}) DELETE x"
25
- ```
31
+ {% endcapture %}
32
+
33
+ {% capture python_1 %}
34
+ graph.query("MATCH (x: Y {propname: propvalue}) DELETE x")
35
+ {% endcapture %}
36
+
37
+ {% include code_tabs.html id="tabs_1" shell=shell_1 python=python_1 %}
26
38
27
39
WARNING: When you delete a node, all of the node's incoming/outgoing relationships are also removed.
28
40
You can’t perform that action at this time.
0 commit comments