delete all fields that start with mongo

Code Example - delete all fields that start with mongo

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