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.

Emil Eifrem is not really an actor! We no longer want him in the database. Write the code to delete his node in the graph

MATCH (p:PERSON) WHERE p.name='Emil Eifrem' DETACH DELETE p is not working
it say no records nochage

3 REPLIES 3

Hi @harsimran_kaur1 ,

Have you tried with

MATCH (p:Person) WHERE p.name='Emil Eifrem' DETACH DELETE p

?

Labels are case sensitive.

Bennu

Oh, y’all wanted a twist, ey?

@bennu.neo is correct here, the Cypher statement itself is case insensitive (eg. MATCH/match/MaTcH) but the data (Labels, relationship types, properties) is case sensitive.

Thanks, I already figured it out and completed the task

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online