Delete a user. It is not possible to delete your own user account and a bad_data_err() will be raised in case you try to. Any tokens and tasks associated with the user will also be deleted.
This function requires GRANT
privileges on the @thingsdb
scope.
This function generates a change.
del_user(username)
Argument | Type | Description |
---|---|---|
username | str (required) | Username of the user to delete. |
Returns nil
when successful. A lookup_err() is raised if the user does not exist.
This code will delete user test:
// Delete user `test`
del_user('test');