I\'m using the Mongoose Library for accessing MongoDB with node.js
Is there a way to remove a key from a document? i.e. not just set the value to n
You'll want to do this:
User.findOne({}, function(err, user){ user.key_to_delete = undefined; user.save(); });