Deleting a multiple documents in a MongoDB collection by a nested array element
I am new to Mongo and I have a question about deleting documents using PyMongo. I have a collection called mycollection. It has documents looking like this: { "field1":"value1", "field2":"value2", "array_field": [ "id1", "id2 ] } I want to delete…