the name of the preference
let prefName = "jmapserver-ng-core-basemap"
JMap.User
.removePreference(prefName)
.then(removedPreferenceValue => {
if (removedPreferenceValue === null) {
console.log(Preference item "${prefName}" did not exist or was not removed
)
} else {
console.log(Preference item "${prefName}" has been removed. Value was: ${removedPreferenceValue}
)
}
})
```
a Promise that removes the user preference, and resolves with the value of the removed preference, or null if the preference does not exist
JMap.User.removePreference
Remove a user preference from user storage. The returned Promise resolves with the value of the removed preference, or null if the preference does not exist.
Rejects on error, or if name parameter is not string or empty string, or if no user is logged in