From this http://stackoverflow.com/questions/42615125/neo4j-delete-nodes-with-field-value-not-in-csv-with-cypher[StackOverflow Question] ____ Hello I want to delete all nodes with the label GRAPH_OBJECT that have a property value (lets call it myprop) that is not in a list of numeric values that I have in a CSV or text file. How do a I accomplish this with Cypher? ____ This should work. [source,cypher] ---- // load rows from csv LOAD CSV FROM "file://values.txt" AS row // create a collection of the first column turned into numeric values WITH collect(toInt(row[0])) AS blacklist // find the nodes MATCH (node:GRAPH_OBJECT) // for any of the properties of the node, if it's value is in our blacklist WHERE ANY(property in keys(node) WHERE node[property] IN blacklist) // delete node and relationships DETACH DELETE node; ----