Instance Method

removeItem

Removes a key.

Declaration

void removeItem(in DOMString key);

Parameters

key

The key being removed.

Discussion

If there is no value with the given key, this method does nothing.

On success, this method dispatches a SafariExtensionSettingsChangeEvent event describing the change.

See Also

Removing Settings

clear

Removes all key-value pairs.