Skip to content

llLinksetDataReset

void llLinksetDataReset()

Resets the linkset's data store, erasing all key-value pairs.

This function erases all name-value pairs stored in the linkset’s datastore. When called, it triggers the linkset_data event in all scripts running in the linkset with an action of LINKSETDATA_RESET.

  • Irreversible: This will delete all keys, including those that were created by llLinksetDataWriteProtected. The deletion cannot be undone.
  • Warning: Use with caution, as this operation is permanent.

The following code demonstrates how to delete all keys in linkset data:

// Removes all the keys in linksetdata without a saving throw.
// Warning: This will delete protected keys and is irreversible.
// -- Madi Melodious --
default
{
state_entry()
{
llLinksetDataReset();
}
}