lib/impl/updateRules.js
function deleteRules(rulesToDelete, cb) {
    var idsToRemove = _.pluck(rulesToDelete, "_id");

    function deleteRule(fieldRuleId, cb1) {
      rulesModel.findByIdAndRemove(fieldRuleId, cb1);
    }
    async.each(idsToRemove, deleteRule, cb);
  }
function deleteRules(rulesToDelete, cb) {
    var idsToRemove = _.pluck(rulesToDelete, "_id");

    function deleteRule(fieldRuleId, cb1) {
      rulesModel.findByIdAndRemove(fieldRuleId, cb1);
    }
    async.each(idsToRemove, deleteRule, cb);
  }
function deleteRules ( rulesToDelete , cb ) { var idsToRemove = _ . pluck ( rulesToDelete , "_id" ) ; function deleteRule ( fieldRuleId , cb1 ) { rulesModel . findByIdAndRemove ( fieldRuleId , cb1 ) ; } async . each ( idsToRemove , deleteRule , cb ) ; }
process any deletes
process any deletes