diff --git a/lib/database/powersync/powersync.dart b/lib/database/powersync/powersync.dart index 1d520bfc2..a968de68a 100644 --- a/lib/database/powersync/powersync.dart +++ b/lib/database/powersync/powersync.dart @@ -214,7 +214,7 @@ Future deletePowerSyncDatabaseFile() async { for (final suffix in ['', '-wal', '-shm', '-journal']) { final file = File('$path$suffix'); try { - if (await file.exists()) { + if (file.existsSync()) { await file.delete(); } } catch (e, s) {