deleteFile method
Deletes a file from the cloud storage.
Implementation
@override
Future<void> deleteFile(String path) async {
_checkAuth();
final file = await _getFileByPath(path);
if (file != null && file.id != null) {
try {
await driveApi.files.delete(file.id!);
} catch (e) {
debugPrint("Error deleting file: $e");
rethrow;
}
} else {
debugPrint(
"GoogleDriveProvider: File/Folder to delete not found at $path");
}
}