MCPcopy
hub / github.com/giancarloerra/SocratiCode / removeGraph

Function removeGraph

src/services/code-graph.ts:372–381  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

370
371/** Remove a persisted code graph from Qdrant and clear cache */
372export async function removeGraph(projectPath: string): Promise<void> {
373 const resolved = path.resolve(projectPath);
374 graphCache.delete(resolved);
375 const projectId = projectIdFromPath(resolved);
376 const graphCollName = graphCollectionName(projectId);
377 await deleteGraphData(graphCollName);
378 await deleteSymbolGraphData(projectId);
379 dropSymbolGraphCache(projectId);
380 logger.info("Removed code graph", { projectPath: resolved });
381}
382
383/** Check if a graph exists (in cache or persisted) */
384export async function hasGraph(projectPath: string): Promise<boolean> {

Callers 2

handleGraphToolFunction · 0.85
removeProjectIndexFunction · 0.85

Calls 6

projectIdFromPathFunction · 0.85
graphCollectionNameFunction · 0.85
deleteGraphDataFunction · 0.85
deleteSymbolGraphDataFunction · 0.85
dropSymbolGraphCacheFunction · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected