Docs Home → Develop Applications → MongoDB Manual
db.removeUser()![](/docs/v4.4/assets/link.svg)
On this page
Deprecated since version 2.6: Use db.dropUser()
instead
of db.removeUser()
Definition![](/docs/v4.4/assets/link.svg)
db.removeUser(username)
Removes the specified username from the database.
The
db.removeUser()
method has the following parameter:ParameterTypeDescriptionusername
stringThe database username.