cancel
Showing results for 
Search instead for 
Did you mean: 

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

harsimran_kaur1
Node Link

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

3 REPLIES 3

bennu_neo
Neo4j
Neo4j

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?

adam_cowley
Neo4j
Neo4j

@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.

harsimran_kaur1
Node Link

Thanks, I already figured it out and completed the task

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.