Doc:
{
_id: 5150a1199fac0e6910000002,
name: \'some name,
items: [{
id: 23,
name: \'item name 23\'
},{
id: 24,
name: \'ite
For a single record in array:
db.getCollection('documents').update(
{ },
{'$pull':{ 'items':{'mobile': 1234567890 }}},
{new:true}
);
For a multiple records with same mobile number in array:
db.getCollection('documents').update(
{ },
{'$pull':{ 'items':{'mobile': 1234567890 }}},
{new:true,multi:true}
)