# llLinksetDataDeleteFound

*LSL function*

```lsl
list list llLinksetDataDeleteFound(string pattern, string pass);
```

- `string pattern`: A regular expression (regex) specifying which keys to delete.
- `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](https://wiki.secondlife.com/wiki/list) of the number of keys deleted or skipped.

```lsl title="How to use" frame="terminal"
list result = llLinksetDataDeleteFound("", "");
```

## Specification

**pattern** is a [Regular expression](https://en.wikipedia.org/wiki/Regular_expression).

## Notes

#### Regular Expression Cheat Sheet

## See also

### Functions

- [llLinksetDataAvailable](/functions/llLinksetDataAvailable/)
- [llLinksetDataCountFound](/functions/llLinksetDataCountFound/)
- [llLinksetDataCountKeys](/functions/llLinksetDataCountKeys/)
- [llLinksetDataDelete](/functions/llLinksetDataDelete/)
- [llLinksetDataFindKeys](/functions/llLinksetDataFindKeys/)
- [llLinksetDataListKeys](/functions/llLinksetDataListKeys/)
- [llLinksetDataRead](/functions/llLinksetDataRead/)
- [llLinksetDataReset](/functions/llLinksetDataReset/)
- [llLinksetDataWrite](/functions/llLinksetDataWrite/)

---

*Source: [LlLinksetDataDeleteFound](https://wiki.secondlife.com/wiki/LlLinksetDataDeleteFound) on the Second Life Wiki. Content from the Second Life Wiki article LlLinksetDataDeleteFound (revision 1219032, 2026-09-10), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llLinksetDataDeleteFound/
