meteor Mongo Schema Migrations Remove Record if Specific Field is Specific Value


Example

db.posts.find().forEach(function(doc){
    if(doc.foo === 'bar'){
        db.posts.remove({_id: doc._id});
    }
});