db.removeUser()

On this page本页内容

Deprecated since version 2.6自版本2.6以来已弃用: Use db.dropUser() instead of db.removeUser():请使用db.dropUser()而不是db.removeUser()

Definition定义

db.removeUser(username)

Removes the specified username from the database.从数据库中删除指定的用户名。

The db.removeUser() method has the following parameter:db.removeUser()方法具有以下参数:

Parameter参数Type类型Description描述
usernamestringThe database username.数据库用户名。
←  db.grantRolesToUser()db.revokeRolesFromUser() →