2015-08-18

MongoDB - Array pull (remove) all elements with a given value, of an array type of field

db.COLLECTION_NAME.update( {FILTER_HERE}, { $pull:{FIELD_NAME_WITH_ARRAY : VALUE_HERE } } );