Skip to content
lsl.devlsl.devLSL Dev

llLinksetDataDeleteFound

function
Function syntax
list llLinksetDataDeleteFound(
  1. string pattern,// A regular expression (regex) specifying which keys to delete.
  2. string pass// Optional passphrase required to delete matching protected keys.
);
Returns
list
Energy
10

The llLinksetDataDeleteFound function finds and attempts to delete all keys in the data store that match pattern. This function will delete protected key-value pairs only if the matching pass phrase is passed in the pass parameter. The function returns a list, the first entry in the list is the number of keys deleted, the second entry in the list is the number of keys that could not be deleted due to a non-matching pass phrase.

If this function successfully deletes any keys from the datastore it will trigger a linkset_data event with the type of LINKSET_DATA_MULTIDELETE, the key name will consist of a comma separated list of the key names removed from the datastore.

Returns a list of the number of keys deleted or skipped.

How to use
list result = llLinksetDataDeleteFound("", "");

pattern is a Regular expression.

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.