deleteFile method

  1. @override
Future<void> deleteFile(
  1. String path
)
override

Deletes the file or directory at the specified path.

Implementation

@override
Future<void> deleteFile(String path) {
  return _executeRequest(() async {
    final file = await _getFileByPath(path);
    if (file != null && file.id != null) {
      await driveApi.files.delete(file.id!);
    }
  });
}