Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Delete all nodes and relationships
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Johnny Weng Luu  
View profile  
 More options May 17 2012, 5:58 pm
From: Johnny Weng Luu <johnny.weng....@gmail.com>
Date: Thu, 17 May 2012 14:58:12 -0700 (PDT)
Local: Thurs, May 17 2012 5:58 pm
Subject: Delete all nodes and relationships

First of all, thank you so much for introducing mutative Cypher. It totally
rocks!!! :D

I usually delete all nodes and relationships with two queries:

All nodes with relationships:

      START n = node(*)
      MATCH n-[r]-()
      DELETE n, r

All nodes without relationships:

      START n = node(*)
      DELETE n

Is there a way to delete all nodes and relationships with just one query?

I thought this one would do it but it failed:

      START n = node(*)
      MATCH n-[r?]-()
      DELETE n, r

Johnny


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options May 17 2012, 6:11 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Fri, 18 May 2012 00:11:52 +0200
Local: Thurs, May 17 2012 6:11 pm
Subject: Re: [Neo4j] Delete all nodes and relationships
How did it fail?

It shouldn't at least not in 1.8-SNAPSHOT ?

Michael

Am 17.05.2012 um 23:58 schrieb Johnny Weng Luu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johnny Weng Luu  
View profile  
 More options May 17 2012, 6:29 pm
From: Johnny Weng Luu <johnny.weng....@gmail.com>
Date: Thu, 17 May 2012 15:29:08 -0700 (PDT)
Local: Thurs, May 17 2012 6:29 pm
Subject: Re: [Neo4j] Delete all nodes and relationships

It doesn't delete anything and it messes up the db so I can't delete any
node afterwards.

I'm using the latest 1.8 Heroku add-on.

Johnny


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johnny Weng Luu  
View profile  
 More options May 17 2012, 6:29 pm
From: Johnny Weng Luu <johnny.weng....@gmail.com>
Date: Thu, 17 May 2012 15:29:55 -0700 (PDT)
Local: Thurs, May 17 2012 6:29 pm
Subject: Re: [Neo4j] Delete all nodes and relationships

Perhaps the problem is that when "r" is not available but yet I have "r" in
DELETE?

Johnny


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options May 17 2012, 6:34 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Fri, 18 May 2012 00:34:51 +0200
Local: Thurs, May 17 2012 6:34 pm
Subject: Re: [Neo4j] Delete all nodes and relationships
You mean it messes up the console?

Heroku uses 1.8.M02 imho.

Does it work for you here http://console.neo4j.org ?

Oh, you might want to exclude the root node (with where ID(n) <> 0)

Michael

Am 18.05.2012 um 00:29 schrieb Johnny Weng Luu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johnny Luu  
View profile  
 More options May 19 2012, 7:31 pm
From: Johnny Luu <johnny.weng....@gmail.com>
Date: Sun, 20 May 2012 01:31:11 +0200
Local: Sat, May 19 2012 7:31 pm
Subject: Re: [Neo4j] Delete all nodes and relationships
Why <> 0? Is it possible for an ID to be less than 0?

Johnny

Sent from my iPad

On 18 maj 2012, at 00:34, Michael Hunger <michael.hun...@neotechnology.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Neubauer  
View profile  
 More options May 20 2012, 3:13 am
From: Peter Neubauer <neubauer.pe...@gmail.com>
Date: Sun, 20 May 2012 09:13:51 +0200
Local: Sun, May 20 2012 3:13 am
Subject: Re: [Neo4j] Delete all nodes and relationships

No,
It's just that "! =" is already claimed for optional properties...

Send from mobile.
On May 20, 2012 1:31 AM, "Johnny Luu" <johnny.weng....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »