File size: 583 Bytes
cf1f646
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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()