resetPreference()

Resets or removes the value that is associated with the specified key. If there are default values available for the preference, it will be reset to its default value. If default values are not supported or available, the preference is removed.

This function produces an error if the provided key is null.

Syntax

portalLib.resetPreference(key String in)
key
The key that is associated with the preference that is to be reset.

Example

portalLib.resetPreference("username");

Feedback