#### Neo.DatabaseError.Database.Unknown
Unable to complete transaction.
Should be
Neo.ClientError.Schema.ConstraintValidationFailed
Cannot delete node<7922>, because it still has relationships. To delete this node, you must first delete its relationships.
neo4j@ubuntu22dockerdebjava17:~/single/instance1/neo4j-enterprise-5.26.0/bin$ ./cypher-shell
username: neo4j
password:
Connected to Neo4j using Bolt protocol version 5.7 at neo4j://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
neo4j@neo4j> CREATE (charlie:Person:Actor {name: 'Charlie Sheen'})-[:ACTED_IN {role: 'Bud Fox'}]->(wallStreet:Movie {title: 'Wall Street'})<-[:DIRECTED]-(oliver:Person:Director {name: 'Oliver Stone'});
0 rows
ready to start consuming query after 547 ms, results consumed after another 0 ms
Added 3 nodes, Created 2 relationships, Set 4 properties, Added 5 labels
neo4j@neo4j> MATCH(n:Person {name: 'Charlie Sheen'})
DELETE n;
Cannot delete node<130000>, because it still has relationships. To delete this node, you must first delete its relationships.
through what client are you issuing the cypher statements through?