delete method

Future<void> delete()

Deletes the object at this reference.

Returns: A Future that completes when deletion is done.

Example:

await ref.delete();

Implementation

Future<void> delete() async {
  FusabaseAuth auth = FusabaseAuth.instanceFor(app: this.storage.app);
  String? accessToken = await getAccessToken(auth);

  await StorageHelper.deleteObject(
    createClient(storage.app),
    storage._config,
    storage._maxOperationRetryTime,
    _bucket,
    this.__logLevel,
    fullPath,
    accessToken,
  );
}