Version: 0.0.5 (stable)
agrag.ingestion.community.delete_all_communities
delete_all_communities(graph_store:GraphStore | GraphStoreTransaction, *, batch_size:int = _DEFAULT_DELETE_BATCH_SIZE) -> None
Delete every Community node and its edges, in batches.
Repeats the bounded delete until a batch reports fewer than batch_size rows deleted.
Parameters:
- graph_store (
GraphStore | GraphStoreTransaction) – Where the delete runs. Accepts either aGraphStoreor aGraphStoreTransactionhandle so astore.run_in_transactioncallback can delete and rewrite communities atomically. - batch_size (
int) – Community nodes deleted per statement.