Mongodb remove field from Array objects all documents

db.collection.update({}, {$unset: {"reviews.$[].username":true}}, {multi:true})
Topics: MongoDB

Related Code Examples