cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Cannot remove unknown/unrelated nodes, relationships and properties

iganea9
Node Link

I'm working on a Neo4J database for a complex project and today I noticed unrelated and unknown nodes, relationships and properties (highlighted with the IA prefix - node labels, all relationships and nodes in the image at the bottom). How could the appear? I haven't created them and I have no application that uses these nodes. The database is store locally.

I tried the command in the image right below and it removed nothing. Any suggestions for how I should do that? This didn't work so obviously it's not the right way to do it.

Code:

match (n) where id(n) in[57-126] detach delete n

Result:
3X_9_9_996c4e02403b53271adfce4017db2d45ad703185.png

2 REPLIES 2

Bennu
Graph Fellow

Hi @iganea9 ,

Trym

match (n) where id(n) in range(57,126) detach delete n

Bennu

@iganea9

not exactly clear to me how we got to

match (n) where id(n) in[57-126] detach delete n;

but the above evaluates to

match (n) where id(n) in[-69] detach delete n;

for it evaluates 57-126 and thus -69. And as id(n)>=0 then a negative number is sure to return no nodes with this id value