delete method
Delete points by IDs. No-op for IDs that don't exist.
Implementation
Future<void> delete(List<String> ids) async {
_checkOpen();
if (ids.isEmpty) return;
final json = jsonEncode(ids);
final jsonPtr = json.toNativeUtf8();
final errorOut = calloc<Pointer<Utf8>>();
try {
final rc = _b.qe_shard_delete(
_shard,
jsonPtr.cast(),
errorOut.cast(),
);
if (rc != 0) {
throw QdrantException(
_consumeString(_b, errorOut) ?? 'qe_shard_delete rc=$rc');
}
} finally {
malloc.free(jsonPtr);
calloc.free(errorOut);
}
}