Neo4j - How to to remove all data from neo4j?

Neo4j - How to to remove all data from neo4j?

Hi,

I am learning neo4j. I have created few nodes and links. Now I want to delete all of them. How to delete all nodes, links and properties from a Neo4j database?

Thanks

View Answers

May 20, 2015 at 3:48 AM

Hi,

You can use the following query:

MATCH (n)
OPTIONAL MATCH (n)-[r]-()
DELETE n,r

This query will delete all the data (nodes, links, properties) from a neo4j database.

Thanks

Ads









Related Tutorials/Questions & Answers:
remove all objects from NSMutablearray
Need to Remove Duplicate Records from Excel Sheet
Advertisements
remove element from stack
data science from iim
data analytics from iim
Removing a Row from a JTable
retrive data from database
write a program to remove the element from hashset using keyboard.
uiscrollview remove all subviews
Insert Data From File
size of all primitive data
retrive data from database?
data science for all
Insert Data From File
parse data from a link in java
Problem in accessing data from Database
remove from superview iphone sdk
remove comma from string php
remove comma from string php
remove punctuation from string in java
learn data science from scratch
data science jobs from home
data science course from iim
data science course from iit
GWT -- retrive the data from Database
view data from jTextArea to jtable
FAILED TO INSERT DATA FROM FUNCTION();
retrieve data from mysql database
Purge Data from Mysql tables
Retrieving specific data from excel
pass data from java frame to file

Ads