diff --git a/mobile/lib/modules/backup/services/backup.service.dart b/mobile/lib/modules/backup/services/backup.service.dart index 4bc6e19867..99660d6907 100644 --- a/mobile/lib/modules/backup/services/backup.service.dart +++ b/mobile/lib/modules/backup/services/backup.service.dart @@ -394,8 +394,12 @@ class BackupService { continue; } finally { if (Platform.isIOS) { - file?.deleteSync(); - livePhotoFile?.deleteSync(); + try { + await file?.delete(); + await livePhotoFile?.delete(); + } catch (e) { + debugPrint("ERROR deleting file: ${e.toString()}"); + } } } }