db.removeUser()

On this page本页内容

Deprecated since version 2.6:Use db.dropUser() instead of db.removeUser()

Definition定义

db.removeUser(username)

Removes the specified username from the database.

The db.removeUser() method has the following parameter:

Parameter参数Type类型Description描述
username string The database username.