mongodb shell delete user code example Example: mongodb delete user use admin db.dropUser('<username>')