2015-08-18

MongoDB - Array pull all (multiple element deletion), based on value, from an array type of field

db.COLLECTION_NAME.update(
    {FILTER_HERE}
    , {
        $pullAll:{
            FIELD_NAME : [ VALUE_1, VALUE_2 ]
        }
    }
);