How to delete nodes that do not have specified properties (except <id> )?

    1 answer 1

    To remove nodes without a certain Holy Island try

     MATCH (n) WHERE NOT EXISTS(n.fooProperty) DETACH DELETE n 

    to remove nodes that have no properties at all:

     MATCH (n) WHERE keys(n) = [] DETACH DELETE n