(projectPath: string)
| 370 | |
| 371 | /** Remove a persisted code graph from Qdrant and clear cache */ |
| 372 | export 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) */ |
| 384 | export async function hasGraph(projectPath: string): Promise<boolean> { |
no test coverage detected