How do I delete SharedPreferences data for my application?
I\'m creating an application that uses a lot of web services to sync data. For testing purposes, I need to
The Kotlin ktx way to clear all preferences:
val prefs: SharedPreferences = getSharedPreferences("prefsName", Context.MODE_PRIVATE) prefs.edit(commit = true) { clear() }
Click here for all Shared preferences operations with examples