Deleting Emil

Hi,
I'm trying out the academy course challenge : 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.
With the below code but it says incorrect and I'm unable to continue.
Match (a:Actor {name:'Emil Eifrem')
DISPATCH DELETE a
There is no option to continue without getting the above right. Any help will be appreciated.
TIA
Udhay

It’s DETACH DELETE. You have DISPATCH DELETE

1 Like

Sorry, that was a typo. I see that the record is getting deleted but the challenge option which says Check Database, which validates my statement says not correct. The hint is " First retrieve the node for Emil Eifrem . Emil Eifrem may have relationships in the graph"
Thanks

In addition to calling it DISPATCH instead of DETACH you have a missing "}"

Try this query and see if it helps

MATCH (a:Actor {name:'Emil Eifrem'})
DETACH DELETE a

There is no syntax error. The course says oops and is stuck there. I ran a match and it works as expected.

Hi Udhay

I am too facing similar problem after resolving the problem with correct solution the Query evalutaion is not geeting done at last step I have tried following Query

Match (a:Actor {name: "Emil Eifrem"})
DETACH DELETE a

I think there is problem with query evaluator from their end.

Thanks & Regards
Vinayak

Please try it's working !!!

Match (p:Person {name:"Emil Eifrem"})
DETACH DELETE p

Thanks & Regards
Vinayak Gaikwad