deleteDocument function

Future<void> deleteDocument(
  1. String path
)

Deletes path.

Implementation

Future<void> deleteDocument(String path) {
  final p = path.toNativeUtf8();
  return _awaitOutcome(
    (port) => fdbFsDelete(p.cast(), port),
    'delete $path',
  ).whenComplete(() => calloc.free(p));
}