ACL DELUSER

Syntax

  1. ACL DELUSER username [username ...]

ACL categories: @admin, @slow, @dangerous

Delete one or more ACL users and terminate all the connections that are authenticated with such users. The default user cannot be removed from the system since it is the default user that every new connection is authenticated with. The argument list may contain ACL users that do not exist. In such cases, no operation is performed for the non-existent ACL users.

Return

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.

Examples

  1. dragonfly> ACL SETUSER myuser ON >mypass +@string +@fast -@slow
  2. OK
  3. dragonfly> ACL DELUSER myuser
  4. (integer) 1
  5. dragonfly> ACL DELUSER non_existent_user
  6. (integer) 0
  7. dragonfly> ACL DELUSER default
  8. (error) ERR The 'default' user cannot be removed