db.teamList.find().forEach( function(document) { for(var k in document) { if (k.startsWith('team')) { delete document[k]; } } db.teamList.save(document); } );