Neo4j - How to to remove all data from neo4j?

Ads
 

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
Remove Element from XML Document
Advertisements
Remove Repeated Characters from the String
Need to Remove Duplicate Records from Excel Sheet
write a program to remove the element from hashset using keyboard.
size of all primitive data
Remove checked checkboxes from arraylist and dipaly remaining arraylist
retrive data from database
Removing a Row from a JTable
remove item from list box using java script - Java Beginners
uiscrollview remove all subviews
Insert Data From File
retrive data from database?
Problem in accessing data from Database
remove a substring from a string
remove element from stack
parse data from a link in java
Insert Data From File
GWT -- retrive the data from Database
Data extraction from an image file.
pass data from java frame to file
Mysql Alter Remove Column
data insertion from xml file to database table
view data from jTextArea to jtable
Purge Data from Mysql tables
use data from database as hyperlink and pass the data in the hyperlink
Remove a value with remove() method
FAILED TO INSERT DATA FROM FUNCTION();
Can I remove jsp web page from the server - JSP-Interview Questions
retrive data from data base and print it in every page until logout
code for selected checkbox columns data from database

Ads