removeSource method

Future<void> removeSource(
  1. int sourceId
)

Remove a source and all its chunks from the database.

Implementation

Future<void> removeSource(int sourceId) async {
  await deleteSource(dbPath: dbPath, sourceId: sourceId);
  // Note: HNSW index is not automatically updated.
  // It's recommended to call rebuildIndex() if many sources are deleted.
}