ACL DELUSER
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.
Return value
Section titled “Return value”| 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 |
Examples
Section titled “Examples”127.0.0.1:6379> ACL DELUSER reports olduser nosuchuser(integer) 2127.0.0.1:6379> ACL DELUSER default(error) ERR the 'default' user cannot be removedCompatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.