JavaScript
{dialog.object}_ls_deleteKeys Method
Syntax
{dialog.object}._ls_deleteKeys(keys);
Arguments
- keysarrayobject
The list of keys to delete. Can be an array of key values or an object. If the keyObj parameter is an object, it must define a parameter called data that contains the keys. See example(s) below.
Description
Deletes data for the specified keys from Local Storage.
//delete all keys in local storage for other UX components
var obj = {dialog.object}._ls_getData('o');
{dialog.object}._ls_deleteKeys(obj);This example demonstrates creating an array that contains the keys:
var keys = [];
keys.push('key1');
keys.push('key2');
keys.push('key3');
{dialog.object}._ls_deleteKeys(keys);This example demonstrate creating a object that contains the keys:
var obj = {};
obj.data = [];
obj.data.push('key1');
obj.data.push('key2');
obj.data.push('key3');
{dialog.object}._ls_deleteKeys(obj);See Also