delete method

Future<void> delete()

Deletes all regular chunk files of this session. Non-regular entries that replace a chunk after listing are ignored.

Deleting the current session of an active FileLogStorage is unsupported. Await that storage's close() first.

Implementation

Future<void> delete() async {
  for (final file in files) {
    if (_isRegularFile(file)) {
      await file.delete();
    }
  }
}