dropUser( username, writeConcern )
Removes the user from the current database.
db.dropUser()method takes the following arguments:
Parameter Type Description
string The name of the user to remove from the database.
document Optional. The level of write concern for the removal operation. The
writeConcerndocument takes the same fields as the
Before dropping a user who has the
userAdminAnyDatabaserole, ensure you have at least another user with user administration privileges.
db.dropUser() operation drops the
reportUser1 user on the