2015-08-18

MongoDB - Drop column, remove a field from all documents (records)

db.COLLECTION.update(
{
  FIELD_NAME : { $exists : true }
  }
  , {
  $unset : { 'FIELD_NAME: 1 }
    }
  , {
  multi : true
  }
);