Lets remove Phone field from 3rd row, where _id: [email protected] db.employees.update({_id: [email protected]“}, {$unset:{Phone:””}})
The above command/query will remove the Phone field from the 3rd row only.
_id | Name | Phone | birthDate |
[email protected] | Srikant | +91-234-567-4567 | |
[email protected] | Abc M | +1-789-654-0987 | 06/20/90 |
[email protected] | Xyz R |