This is the ThingsDB documentation for version v0, click here for the latest version!
Delete a token.
This function requires GRANT privileges on the @thingsdb scope unless the given token belongs
to the logged on user. In the latter case, only EVENT privileges are required.
This function generates an event.
del_token(key)
| Argument | Type | Description |
|---|---|---|
| key | str (required) | Token key to delete. |
Returns nil when successful. A lookup_err() is raised if the token is not found.
This code will delete a token:
// Delete a token
del_token('XXXXXXXXXXXXXXXXXXXXXX');