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









Related Tutorials/Questions & Answers:
remove all objects from NSMutablearray
Remove Element from XML Document
Advertisements
Remove Repeated Characters from the String
Need to Remove Duplicate Records from Excel Sheet
remove a substring from a string
remove element from stack
data science from iim
data analytics from iim
size of all primitive data
retrive data from database
uiscrollview remove all subviews
Removing a Row from a JTable
write a program to remove the element from hashset using keyboard.
data science for all
Remove checked checkboxes from arraylist and dipaly remaining arraylist
Insert Data From File
remove item from list box using java script - Java Beginners
retrive data from database?
Insert Data From File
parse data from a link in java
Problem in accessing data from Database
learn data science from scratch
data science jobs from home
data science course from iim
data science course from iit
remove punctuation from string in java
remove from superview iphone sdk
remove comma from string php
remove comma from string php
Data extraction from an image file.
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
Data retrieve from mysql database
retreive integer data from database
Getting Textbox data from database
Getting Textbox data from database
data insertion from xml file to database table
use data from database as hyperlink and pass the data in the hyperlink
Getting Data from XML File (Document)
Data Conversion from int to another type
Data Conversion from String to another type
Data Conversion from short to another type
Data Conversion from byte to another type
Data Conversion from float to another type
Data Conversion from double to another type

Ads