productos: [
{
name: element 1
number: 3167518236
email: "example@gmail.com"
}
{
name: element 2
number: 3167518236
email: "example@gmail.com"
}
{
name: element 3
number: 3167518236
email: "example@gmail.com"
}
]
How can I for example remove the array two where name: element2 number: 3167518239 and email: example@gmail.com
I'm using this but it doesn't work!
db.list.update({},{"$unset":{productos:{name:"element 2"}}})