remove method

Future<void> remove()

Removes path on disconnect. The usual way to clear a presence marker.

Implementation

Future<void> remove() {
  final p = path.toNativeUtf8();
  return _awaitDbOutcome(
    (port) => fdbDbOnDisconnectRemove(p.cast(), port),
    'onDisconnect.remove',
  ).whenComplete(() => calloc.free(p));
}