using pull and each mongoose code example Example: mongoose pull each $pullAll: { arrayName: ['id1', 'id2'] }