db.removeUser()
On this page
This version of the documentation is archived and no longer
supported. View the current documentation to learn how to
upgrade your version of MongoDB.
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:ParameterTypeDescriptionusername
stringThe database username.