removeDocument method

Future<void> removeDocument({
  1. required String id,
})

Remove a single document by ID. No-op if the ID is absent.

Call after initialize. Before the store is initialized, behavior is backend-specific (the SQLite store throws a StateError; the Qdrant store logs and no-ops) — don't rely on either.

Implementation

Future<void> removeDocument({required String id}) =>
    FlutterGemmaPlugin.instance.removeDocument(id: id);