Cleanup Obsolete db

This commit is contained in:
tarsin committed 2023-05-27 23:52:25 +08:00
1 parent c112322daf
commit 0ffba596e5
1 file changed
+1
@@ -15,6 +15,7 @@ private val OBSOLETE_CACHE_DIRS = arrayOf(
@OptIn(DelicateCoroutinesApi::class)
fun cleanObsoleteCache(application: Application) {
launchIO {
application.deleteDatabase("hosts.db")
val dir = application.cacheDir
for (subdir in OBSOLETE_CACHE_DIRS) {
val file = File(dir, subdir)