remove

fun remove(key: String?): Boolean

Removes a preference from the shared preferences.

Return

true if the value was removed successfully, false otherwise.

Parameters

key

The name of the preference to remove.