Database

[{"_id":1,"shifts":[{"_id":2},{"_id":3}]}]

Query

db.collection.update({"shifts._id":2},{$pull:{shifts:{_id:2}}})

Result