Check out example codes for "delete all nodes neo4j". It will help you in understanding the concepts better.

Code Example 1

MATCH (n) DETACH DELETE n;

Learn ReactJs, React Native from akashmittal.com