Spaces:
Runtime error
Runtime error
| # File Objective : Wipe all nodes and relationships from the Neo4j knowledge graph. | |
| # Scope : Dev script — destructive reset, use before a full rebuild. | |
| # What it does : Deletes every node and relationship in Neo4j (MATCH (n) DETACH DELETE n). | |
| # What it does not: Touch Qdrant, topics.csv, or any other data store. | |
| from vantage_core.adapters.graph_neo4j import Neo4jGraphRepo | |
| def main() -> None: | |
| graph = Neo4jGraphRepo() | |
| graph.wipe() | |
| graph.close() | |
| print("Neo4j wiped — all nodes and relationships deleted.") | |
| if __name__ == "__main__": | |
| main() | |