deleteObject function

Future<void> deleteObject(
  1. String path
)

Deletes the object at path.

Implementation

Future<void> deleteObject(String path) async {
  final p = path.toNativeUtf8();
  try {
    await _awaitOutcome(
      (port) => fdbStorageDelete(p.cast(), port),
      'delete $path',
    );
  } finally {
    calloc.free(p);
  }
}