Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

IAM.ROLE.DELETE

Last updated
IAM.ROLE.DELETE name
Group
IAM
Complexity
O(N) where N is the number of open sessions
Arity
2 (exactly, counting the command name)
Flags
admin, write
HotKV Cloud
Not available
On-Premise
requires the enterprise-iam license feature

IAM.ROLE.DELETE removes a role. The sessions that had it lose what it gave on their next command, on every node of a cluster. A session that had no other role can then run nothing, until it logs in again (and a login with no role is refused). Who was given the role stays on record, so a role created later with the same name is theirs again; see IAM.USER.UNASSIGN.

The built-in roles admin and readonly can be deleted like any other.

Case RESP2 RESP3
The role was deleted Integer 1 Integer 1
There is no such role Integer 0 Integer 0

Without a license that includes enterprise-iam the reply is the error NOLICENSE enterprise-iam requires a HotKV license. Contact sales@hotkv.com.

127.0.0.1:6379> IAM.ROLE.DELETE reporting
(integer) 1
127.0.0.1:6379> IAM.ROLE.DELETE reporting
(integer) 0

HotKV-only command.

IAM.ROLE.CREATE, IAM.ROLE.LIST, Roles and single sign-on