vantage / scripts /wipe_graph.py
sourabh gupta
feat(kg): COVERED_BY edges, wipe script, scroll_all, docs_for_topic
cf1f646
Raw
History Blame Contribute Delete
583 Bytes
# 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()