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.

ACL DELUSER

Last updated
ACL DELUSER username [username ...]
Group
ACL
Complexity
O(N) where N is the number of users
Arity
-3 (at least 3 words, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

ACL DELUSER deletes the named users. Clients that are logged in as a deleted user are disconnected. Names that do not exist are ignored. The default user cannot be deleted; to lock it, turn it off or give it a password with ACL SETUSER.

The change lives in memory. Run ACL SAVE to write it to aclfile.

Case RESP2 RESP3
Success Integer: the number of users deleted Integer
default among the names Error ERR the 'default' user cannot be removed (nothing is deleted) Same error
127.0.0.1:6379> ACL DELUSER reports olduser nosuchuser
(integer) 2
127.0.0.1:6379> ACL DELUSER default
(error) ERR the 'default' user cannot be removed

Same as Redis 7 and Valkey 8.

ACL SETUSER, ACL USERS, ACL SAVE