- Reference >
mongoShell Methods >- Database Methods >
- db.removeUser()
db.removeUser()¶
On this page
Definition¶
-
db.removeUser(username)¶ Removes the specified username from the database.
The
db.removeUser()method has the following parameter:Parameter Type Description usernamestring The database username.