result['result'].forEach(function(doc){
db.students.update(
{'_id': doc._id},
{'$pull':{'scores': {'score': doc.minitem }}}
);
});
Uses the forEach function within the Mongo Shell.
Note that after aggregation the documents are actually within a result
element within the return document currently.