Skip to content

Commit bb31869

Browse files
authored
Make sure to cleanup after synchronized realms as well. (#1621)
* Make sure to cleanup after synchronized realms as well. * Don't try to delete if directory doesn't exist
1 parent 7cd39a7 commit bb31869

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Realm/Realm/Realm.cs

+5
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ public static void DeleteRealm(RealmConfigurationBase configuration)
168168
File.Delete(fullpath + ".log");
169169
File.Delete(fullpath + ".lock");
170170
File.Delete(fullpath + ".note");
171+
172+
if (Directory.Exists($"{fullpath}.management"))
173+
{
174+
Directory.Delete($"{fullpath}.management", recursive: true);
175+
}
171176
}
172177

173178
private static bool IsRealmOpen(string path)

0 commit comments

Comments
 (0)