You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun deleteFile_exceptionInsideMutableRealm() = runBlocking {
try {
realm.subscriptions.update {
throw RuntimeException("Boom!")
}
} catch (ex: RuntimeException) {
if (ex.message == "Boom!") {
realm.close()
Realm.deleteRealm(config)
}
}
Unit
}
Due to the async nature of the underlying Sync Client, it might still hold on to resources after the Realm is closed. This will often cause deleteRealm() to fail with with: [RLM_ERR_DELETE_OPENED_REALM]: Cannot delete files of an open Realm
The text was updated successfully, but these errors were encountered:
Hi folks! Is there any temporary workaround you'd recommend to solve this? Has this been prioritized by the team? I'd be willing to submit a PR if you could provide me with some pointers
E.g this test:
Due to the async nature of the underlying Sync Client, it might still hold on to resources after the Realm is closed. This will often cause
deleteRealm()
to fail with with:[RLM_ERR_DELETE_OPENED_REALM]: Cannot delete files of an open Realm
The text was updated successfully, but these errors were encountered: