removeItem( key ) method

Removes the key and its associated value from this object.

If the key does not exist, has no effect.

Syntax

removeItem( key )

Parameters

Name Type Description
key String String key to remove.

Example

// Create the SUP Storage
var store = new hwc.SUPStorage ("one");
store.setItem ("foo", "bar"); // add an item.
store.removeItem ("foo");
result = store.getItem ("food"); // will be null.

Source

SUPStorage.js, line 278.