From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Thu, 27 Sep 2012 07:18:14 -0700
Local: Thurs, Sep 27 2012 10:18 am
Subject: Re: [Neo4j] Delete operation in SDN using cypher
> START a=node(1)
WITH z
> MATCH (a)-[rels*0..]-(z) > FOREACH(rel IN rels: DELETE rel) > DELETE a where z-->() > DELETE z
Michael
Am 26.09.2012 um 06:43 schrieb Abdul Azeez Shaik:
> Hi Nigel,
> Thanks for the reply. I tried executing in latest 1.8RC1 webconsole, it gives me following error,
> Also, Do we need to use FOREACH in this case? Can't we directly use DELETE a,rels,z? > Thanks,
> On Wed, Sep 26, 2012 at 4:49 PM, Nigel Small <ni...@nigelsmall.net> wrote:
> I have recently added cascading deletion to py2neo. I use the following Cypher query...
> START a=node(1)
> ...where the first line determines the start node by ID. I have also considered looking at limits on relationship type and direction as well as a maximum cascade limit so you may want to consider that too.
> Cheers
> On 26 September 2012 11:33, Abdul Azeez Shaik <azeeztechni...@gmail.com> wrote:
> Can i delete a node along with its relationships and children using the following CYPHER query, > Its not working when i tried this in webconsole of neo4j.
> Kindly let me know your suggestions.
> Thanks,
> -- > -- > -- 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.
| ||||||||||||||