del_token

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.

Function

del_token(key)

Arguments

Argument Type Description
key str (required) Token key to delete.

Return value

Returns nil when successful. A lookup_err() is raised if the token is not found.

Example

This code will delete a token:

// Delete a token
del_token('XXXXXXXXXXXXXXXXXXXXXX');