I think it is a simple question but I am not able to find the answer. I have tried various ways to delete a relationship in neo4j 1.6 using cypher, but getting error.
start n = node(1) match n-[r:KNOWS]-m delete r;
I want to delete all relationships of type KNOWS , but I am getting the error -
==> SyntaxException: expected return clause
==> "start n = node(1) match n-[r:KNOWS]-m delete r; "
Even if I give
start n = node(1) match n-[r:KNOWS]-m delete r return count(r);
it doesnt work.
Note : Above issue is not seen on neo4j 1.8, but I have to somehow run the query on neo4j 1.6.
neo4j-shell
withtraverse
andrmrel
commands or the javascripteval
. You should be also able to run a 1.8 shell against 1.6 as the store-format hasn't changed. But be sure to make a backup before!! – Michael Hunger