Skip to main content

table.rawdelete(key)

Deletes a key-value pair from a table without employing delegation

Availability

Device + Agent

Parameters

Name Type Description
key Any Squirrel data type The key to be deleted

Returns

Any Squirrel data type — the value of the deleted key, otherwise null

Description

This method deletes the target slot without employing delegation. If the table lacks the target slot, the methods returns null, otherwise is returns the value associated with that slot. The slot’s key is implicitly deleted, so if you wish to re-use it, you will need to add it using the table slot assignment operator, <-.

Example Code