I have collection, contain an array of objects and I want to delete one object by filter inside this array example:
"ProductsImages" : [
{
"_id" : ObjectId("5c6fc524c324ac0e7497b6c0"),
"Namefile" : "Bild-4.png",
"Urls" : "https://fares.blob.core.windows.net/fares2/Bild-4.png"
},
{
"_id" : ObjectId("5c6fc52cc324ac0e7497b6c1"),
"Namefile" : "KINGSTON-BAY-704668-logo.png",
"Urls" : "https://fares.blob.core.windows.net/fares2/KINGSTON-BAY-704668-logo.png"
}
],
so i want to delete first one which contain a "Namefile" : "Bild-4.png" in mongodb shell, or C# monogodb drive and thanks for your help.