how to delete field in mongodb code example
Example 1: remove property mongodb
db.myCollection.update({}, {$unset: {fieldToRemove:1}} , {multi: true});
Example 2: mongodb aggregate remove field
{ $project: { "<field1>": 0, "<field2>": 0, ... } } // Return all but the specified fields