Updated on 2022-09-21 GMT+08:00

Deleting a User

db.dropUser(username, writeConcern)

  • username is the name of the user to be deleted from the database.
  • writeConcern: The level of write concern for the removal operation. This parameter is optional.