What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.
ACL DELUSER
Deletes ACL users, and terminates their connections.
Usage
ACL DELUSER username ...
Complexity
O(1) amortized time considering the typical user.
Since
6.0.0
ACL Categories
@admin, @dangerous, @slow
Command flags
ADMIN, NOSCRIPT, LOADING, STALE, SENTINEL
Delete all the specified ACL users and terminate all the connections that are
authenticated with such users. Note: the special default user cannot be
removed from the system, this is the default user that every new connection
is authenticated with. The list of users may include usernames that do not
exist, in such case no operation is performed for the non existing users.
Examples
127.0.0.1:6379> ACL DELUSER antirez
(integer) 1
Replies
RESP2
Integer reply: the number of users that were deleted. This number will not always match the number of arguments since certain users may not exist.
RESP3
Integer reply: the number of users that were deleted. This number will not always match the number of arguments since certain users may not exist.