Deleting Emil

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.

Validate Results

Once you have run the query, click the Check Database button and we will check the database for you.

Hint

First retrieve the node for Emil Eifrem. Emil Eifrem may have relationships in the graph.

Solution

The following query will find any :Person node with the name Emil Eifrem and then use the DETACH DELETE clause to remove each node and any relationships into our out from the node.

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

Summary

In this challenge, you demonstrated that you can delete a node from the graph.

Chatbot

Hi, I am an Educational Learning Assistant for Intelligent Network Exploration. You can call me E.L.A.I.N.E.

How can I help you today?