Storage:delete()
Delete a stored value by key.
Parameters
| Parameters | Type | Description |
|---|---|---|
| key | string | The storage key |
Signature
Storage:delete(key: string): boolean
Returns
boolean - true when the key is deleted successfully
Examples
local ok = Storage:delete("session_token")
print(ok)
Storage:write("temp_key", "value")
Storage:delete("temp_key")
Notes
- Deleting a missing key raises an error in the current implementation
- The key must not be empty