ice_screenshot_20151210-105357

Method 2:

Create remove_user.js

mongo = new Mongo(“localhost”);
db=mongo.getDB(“test”);
db.dropUser(“testWriter”)
cur=db.system.users.find();
printjson(cur.toArray());

Advertisements