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
Is there any delete API that completely deletes the underlying key-value storage? What I'm looking for is different from the API clear, I don't want to clear all key values within the storage, but remove the storage itself.
for example, we can use this code:
Android:
context.deleteSharedPreferences("STORAGE_NAME")
Windows:
funremove() = memScoped {
val hkey = alloc<HKEYVar>()
try {
RegDeleteKeyExW(
HKEY_CURRENT_USER,
rootKeyName,
(KEY_READorKEY_WRITE).toUInt(),
0u,
).checkWinApiSuccess { "Unable to create/open registry key for \"$rootKeyName\"" }
} finally {
}
}
and similarly, I expect such functionality should be available in the other platforms, so we can use them and implement the API in the library.
If it's not included in this library, is there any plan to support such functionality?
Thanks
The text was updated successfully, but these errors were encountered:
I'm working on a Kotlin Multiplatform application that needs to dynamically create many temporary key-value storages (KVS) as the user demands and then remove the file because I don't want to keep many empty KVS on users' devices. so I'm looking for an approach to delete the storage instead of clearing its content.
Is there any delete API that completely deletes the underlying key-value storage? What I'm looking for is different from the API
clear
, I don't want to clear all key values within the storage, but remove the storage itself.for example, we can use this code:
Android:
context.deleteSharedPreferences("STORAGE_NAME")
Windows:
and similarly, I expect such functionality should be available in the other platforms, so we can use them and implement the API in the library.
If it's not included in this library, is there any plan to support such functionality?
Thanks
The text was updated successfully, but these errors were encountered: