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 CHANGE
privileges are required.
This function generates a change.
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');