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描述
username string The database username.数据库用户名。