removeSource method

Future<void> removeSource(
  1. int sourceId
)

Remove a source and all its chunks.

Note: You do NOT need to call rebuildIndex immediately. The engine uses lazy filtering to exclude deleted items from search results. However, if you delete a large amount of data (e.g., >50%), calling rebuildIndex is recommended to reclaim memory and optimize the vector graph.

Implementation

Future<void> removeSource(int sourceId) => _engine!.removeSource(sourceId);