If you run your cypher statements in a transaction then you can always rollback instead of committing.
- in the Neo4j-Shell or old Web-UI with
BEGIN .... COMMIT
around your queries useROLLBACK
- with the new transactional http endpoint
- with programmatic use, e.g. via the JAVA API and transactional boundaries
- with any of the drivers that support transactions with Neo4j: http://neo4j.org/drivers